Submission

Status:

-PP---P----P---PP--P

Subtask/Task Score:

35/100

Score: 35

User: chayuth20

Problemset: Slowly Express

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-05 13:22:40

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <iomanip>

using namespace std;


int main(){
    int num;
    vector<int> arr;
    int man = 0;
    while(cin >> num){
        if(num <= 0) break;
        man += num;
        int point = 0;
        while(man > 800){
            man -= 800;
            point += 1;
        }
        while(man >= 700){
            man -= 700;
            point += 1;
        }
        while(man >= 600){
            man -= 600;
            point += 1;
        }
        while(man >= 500){
            man -= 500;
            point += 1;
        }
        cout << point << endl;

        
    }
           

          
    return 0;
}