#import<iostream>
int a[4][2],i,s,m;main(){for(;i<4;){std::cin>>a[i][0]>>a[i][1];s+=a[i][1]-a[i++][0];if(s>m)m=s;}std::cout<<m;}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1716 KB |
Output is correct |
2 |
Incorrect |
0 ms |
1716 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
1716 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
1716 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
1716 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
1716 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
1716 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
1716 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
1716 KB |
Output isn't correct |
10 |
Correct |
0 ms |
1716 KB |
Output is correct |