Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:普度众生

Posted by 1716143223 at 2018-12-19 16:25:19 on Problem 1945
In Reply To:普度众生 Posted by:StephenCurry at 2015-10-13 19:47:01
> #include<iostream>
> using namespace std;
> 
> 
> int main ()
> {
>     int n;
>     cin >>n;
>     
>     switch (n)
>     {
>         case 19997 : cout <<"18"<<endl; break;
>         case 15151 : cout <<"17"<<endl; break;
>         case 11111 : cout <<"17"<<endl; break;
>         case 10007 : cout <<"16"<<endl; break;
>         case 5123 : cout <<"14"<<endl; break;
>         case 5111 : cout <<"15"<<endl; break;
>         case 1234 : cout <<"13"<<endl; break;
>         case 1024 : cout <<"10"<<endl; break;
>         case 1023 : cout <<"11"<<endl; break;
>         case 1010 : cout <<"12"<<endl; break;
>         case 31 : cout <<"6"<<endl; break;
>     }
>     
>     return 0; 
> }

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator