/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 540.0 KiB
#2 Accepted 2ms 332.0 KiB
#3 Accepted 2ms 520.0 KiB
#4 Accepted 2ms 332.0 KiB
#5 Accepted 2ms 544.0 KiB
#6 Accepted 2ms 532.0 KiB
#7 Accepted 2ms 540.0 KiB

Code

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int x; cin>>x;
    //if(x==0) {cout<<0<<endl; return 0;}
    x = x%10;
    if(x==0) cout<<1<<endl;
    else if(x==1 || x==3 || x==7 || x==9) cout<<10<<endl;
    else if(x==2 || x==4 || x==6 || x==8) cout<<5<<endl;
    else cout<<2<<endl;   // for x==5
}

Information

Submit By
Type
Submission
Problem
P1012 Zéros de fin
Language
C++17 (G++ 13.2.0)
Submit At
2023-12-04 17:14:05
Judged At
2024-11-11 03:49:25
Judged By
Score
100
Total Time
2ms
Peak Memory
544.0 KiB