- 题解
H1008小图的数学课题解(迫真)
- 2024-1-28 8:14:28 @
原题里0≤n≤15。 打表出奇迹!!!
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,sum=0;
cin>>n;
if(n==0){
cout<<"1";
}else if(n==1){
cout<<"1";
}else if(n==2){
cout<<"2";
}else if(n==3){
cout<<"3";
}else if(n==4){
cout<<"8";
}else if(n==5){
cout<<"15";
}else if(n==6){
cout<<"48";
}else if(n==7){
cout<<"105";
}else if(n==8){
cout<<"384";
}else if(n==9){
cout<<"945";
}else if(n==10){
cout<<"3840";
}else if(n==11){
cout<<"10395";
}else if(n==12){
cout<<"46080";
}else if(n==13){
cout<<"135135";
}else if(n==14){
cout<<"645120";
}else if(n==15){
cout<<"2027025";
}
}
4 条评论
-
@ 2024-2-4 18:23:05
emmm....
-
2024-2-4 18:22:34@
5
-
2024-1-28 8:59:24@
👍
-
2024-1-28 8:59:18@
6
- 1