Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: rice_ot
Problemset: Slowly Express
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-14 14:37:10
#include <bits/stdc++.h>
using namespace std;
int main(){
int x;
int weight = 0;
while(cin>>x && x>=0){
weight+=x;
if(weight%800 >= 500){
cout<<(weight/800)+1<<"\n";
weight = 0;
}
else{
cout<<weight/800<<"\n";
weight%=800;
}
}
}