Submission #789243

# Submission time Handle Problem Language Result Execution time Memory
789243 2023-07-21T08:35:24 Z Dan4Life Bulldozer (JOI17_bulldozer) C++17
0 / 100
1 ms 212 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
	int n; cin >> n; int sum = 0, ans=0;
	for(int i = 0; i < n; i++){
		int x,y,z; cin>>x>>y>>z;
		sum+=z; if(sum<0)sum=0;ans=max(ans,sum);
	}
	cout << ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -