Submission

Status:

--P-----P--P----P---

Subtask/Task Score:

20/100

Score: 20

User: Monasm

Problemset: Slowly Express

Language: cpp

Time: 0.003 second

Submitted On: 2025-12-22 21:35:19

#include <stdio.h>

int main(){
    while(1){
        int x,n;
        scanf("%d",&x);
        n=x/800;
        if(x<0){
            break;
        }
        if(x%800>=500){
            n+=1;
        }
        printf("%d\n",n);
    }
}