# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1110628 | 2024-11-10T06:25:32 Z | vjudge1 | Tuna (COCI17_tuna) | C++ | 1 ms | 336 KB |
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int t,m,para=0,H,Z,S; cin>>t>>m; for (int i = 0; i < t; i++) { cin>>H>>Z; if(max(H-Z,Z-H)<=m) { para+=max(H,Z); } else { cin>>S; para+=S; } } }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |