| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1313729 | tahasin_hossain | Knapsack (NOI18_knapsack) | Pypy 3 | 138 ms | 48756 KiB |
a,b=map(int,input().split(" "))
value=0
for val in range(b):
v,m,n=map(int,input().split(" "))
while a>=0 and a>=m and n>0:
a=a-m
value+=v
n-=1
print(value)
Compilation message (stdout)
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
