1 solutions

  • 1
    @ 2026-5-23 20:46:07

    #include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; int n=0; int m=0; for(int i=1;i<=a;i++) { int b; cin>>b; n=b%10; m=(b/10); if(n>=5) { m++; cout<<m<<0<<endl; } else { if(m==0) { cout<<0<<endl; } else { cout<<m<<0<<endl; } } } return 0; }

    • 1

    Information

    ID
    2560
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    101
    Accepted
    27
    Uploaded By