ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2123. Knapsack

What is test 7?
Posted by So Sui Ming 8 Jan 2024 08:09
WA on test 7.
I've used uint64_t in array and sum, and int64_t in result.
Corner case of sum = 0 is taken care of.

Regards,
So Sui Ming
Re: What is test 7?
Posted by soldSoulToTheGame 29 May 2024 19:03
even signed long long should work fine. try to find error in your solution