Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: cheetah
Problemset: Slowly Express
Language: cpp
Time: 0.002 second
Submitted On: 2026-06-04 00:29:10
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int n = 0, num = 0;
while (true) {
int cnt = 0;
cin >> n;
if (n < 0) {
break;
}
n += num;
cnt = n / 800;
num = n % 800;
if (num >= 500) {
++cnt;
num = 0;
}
cout << cnt << "\n";
}
return 0;
}