mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 2553.cpp
This commit is contained in:
parent
8f53a0e7fd
commit
39c5603c14
24
HDOJ/2553.cpp
Normal file
24
HDOJ/2553.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include <cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
int ans;
|
||||
while(scanf("%d",&n)==1&&n!=0)
|
||||
{
|
||||
switch(n)
|
||||
{
|
||||
case 1:ans=1;break;
|
||||
case 2:case 3:ans=0;break;
|
||||
case 4:ans=2;break;
|
||||
case 5:ans=10;break;
|
||||
case 6:ans=4;break;
|
||||
case 7:ans=40;break;
|
||||
case 8:ans=92;break;
|
||||
case 9:ans=352;break;
|
||||
case 10:ans=724;break;
|
||||
}
|
||||
printf("%d\n",ans);
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user