CSP模拟二能发个题解吗?
史上最不靠谱502答案
include
using namespace std;
int n,na,nb,fa=0,fb=0;
int main(){
cin>>n>>na>>nb;
int a[na+1],b[nb+1];
for(int i=1;i<=na;i++)
cin>>a[i];
a[0]=a[na];
for(int i=1;i<=nb;i++)
cin>>b[i];
b[0]=b[nb];
for(int i=1;i<=n;i++){
if(a[i%na]==0&&b[i%nb]==1)
fb++;
else if(a[i%na]==0&&b[i%nb]==2)
fa++;
else if(a[i%na]==0&&b[i%nb]==3)
fa++;
else if(a[i%na]==0&&b[i%nb]==4)
fb++;
else if(a[i%na]==1&&b[i%nb]==0)
fa++;
else if(a[i%na]==1&&b[i%nb]==2)
fb++;
else if(a[i%na]==1&&b[i%nb]==3)
fa++;
else if(a[i%na]==1&&b[i%nb]==4)
fb++;
else if(a[i%na]==2&&b[i%nb]==0)
fb++;
else if(a[i%na]==2&&b[i%nb]==1)
fa++;
else if(a[i%na]==2&&b[i%nb]==3)
fb++;
else if(a[i%na]==2&&b[i%nb]==4)
fa++;
else if(a[i%na]==3&&b[i%nb]==0)
fb++;
else if(a[i%na]==3&&b[i%nb]==1)
fb++;
else if(a[i%na]==3&&b[i%nb]==2)
fa++;
else if(a[i%na]==3&&b[i%nb]==4)
fa++;
else if(a[i%na]==4&&b[i%nb]==0)
fa++;
else if(a[i%na]==4&&b[i%nb]==1)
fa++;
else if(a[i%na]==4&&b[i%nb]==2)
fb++;
else if(a[i%na]==4&&b[i%nb]==3)
fb++;
}
cout<<fa<<" "<<fb;
}**
373——Pascal??
是要我们用Pascal做吗?
441这循环次数也太多了吧!
*
621总是超时怎么办啊!!!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
No God Please No!
214咋做?
????????
Why?
PNG
IHDRt9\sRGBgAMAa pHYs%%IR$2IDATx^OhA_DDlz(TP4Aۋ$M/AĜ4hz 4x1^Ԝxin(hEŊFiDbEmY76}},LyoP8 E"9.7w('̃NxD1ה!WT3Ρ[XcS>|O@U^}D~]!jIMTk%F~ p({Ɯ!zvPU(D& ^&SCgcc? צTVZ!{Ҙ2
xpeie̟Dfb#kD͐FUj4TTAD#-0_`<2A7dA;%[yM>ӥj4TN(Bd8xuyBSϹumԝ2!dH@8z>-r澓nILC儾7DlsĔ"pk_Ah9kQP,P 2}8;By+D"FDN?إV[aBǜc&$pZ7
.09+
ĭra0M$LgCu吅?ukE;EyŹ&9qp[g" .s%Yh0
BEt&!U[QHlvG %4w!Վ],&-61L~v.3iLyC_`Erٍ%-;ڲVi
Gv 7y~9ܺ.~B'&"xu娃cI X;a8XxlӶ"B+1{O#GaZ&9rmfua0G{<9ȥW 1({6auVqp[1{!WPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPaPQt;~8IENDB`