你们第一题咋做的?我用笔算的
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen(“match.in”,“r”,stdin);
freopen(“match.out”,“w”,stdout);
int n;
cin>>n;
if(n==1){
cout<<“1”<<endl;
cout<<“I”<<endl;
}else if(n==2){
cout<<“3”<<endl;
cout<<“II”<<endl;
cout<<“V”<<endl;
cout<<“x”<<endl;
}else if(n==3){
cout<<“5”<<endl;
cout<<“III”<<endl;
cout<<“IV”<<endl;
cout<<“VI”<<endl;
cout<<“IX”<<endl;
cout<<“XI”<<endl;
}
else if(n==4){
cout<<“4”<<endl;
cout<<“VII”<<endl;
cout<<“XII”<<endl;
cout<<“XV”<<endl;
cout<<“XX”<<endl;
}else if(n==5){
cout<<“6”<<endl;
cout<<“VIII”<<endl;
cout<<“XIII”<<endl;
cout<<“XIV”<<endl;
cout<<“XVI”<<endl;
cout<<“XIX”<<endl;
cout<<“XXI”<<endl;
}else if(n==6){
cout<<“4”<<endl;
cout<<“XVII”<<endl;
cout<<“XXII”<<endl;
cout<<“XXV”<<endl;
cout<<“XXX”<<endl;
}else if(n==7){
cout<<“6”<<endl;
cout<<“XVIII”<<endl;
cout<<“XXIII”<<endl;
cout<<“XXIV”<<endl;
cout<<“XXVI”<<endl;
cout<<“XXIX”<<endl;
cout<<“XXXI”<<endl;
}
else if(n==8){
cout<<“3”<<endl;
cout<<“XXVII”<<endl;
cout<<“XXXII”<<endl;
cout<<“XXXV”<<endl;
}else if(n==9){
cout<<"5"<<endl;
cout<<"XXVIII"<<endl;
cout<<"XXXIII"<<endl;
cout<<"XXXIV"<<endl;
cout<<"XXXVI"<<endl;
cout<<"XXXIX"<<endl;
}else if(n==10){
cout<<"1"<<endl;
cout<<"XXXVII";
}else if(n==11){
cout<<"1"<<endl;
cout<<"XXXVIII";
}else{
cout<<"0";
}
return 0;
}