Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Score: 100
User: Namkhing
Problemset: Slowly Express
Language: cpp
Time: 0.002 second
Submitted On: 2025-04-11 16:18:04
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(nullptr)->ios_base::sync_with_stdio(false);
int n;
int sum = 0;
while (true) {
cin >> n;
if (n < 0) break;
sum += n;
int cnt = sum / 800;
sum %= 800;
if (sum >= 500) cnt++, sum = 0;
cout << cnt << "\n";
}
}