# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1110691 | 2024-11-10T08:11:20 Z | vjudge1 | Tuna (COCI17_tuna) | C++14 | 1 ms | 336 KB |
#include <bits/stdc++.h> using namespace std; int main() { int n, x, a, b, awnser; cin>>n>>x; for(int i = 0 ; i < n ; i++){ cin>>a>>b; if(max(a, b) - min(a, b) <= x) awnser += max(a, b); else{ cin>>a; awnser += a; } } cout<<awnser; return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |