# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1110628 | vjudge1 | Tuna (COCI17_tuna) | C++98 | 1 ms | 336 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|---|---|---|---|
Fetching results... |