dingding2008 @ 2023-05-15 21:40:03
我错了一个样例,为什么还100分?
by System404 @ 2023-05-15 21:41:15
哪一题?
by CQ_Bob @ 2023-05-15 21:42:20
@System404 … 或许看看所属板块
by System404 @ 2023-05-15 21:43:36
嗯...是不是回复错人了?
by WA_sir @ 2023-05-15 21:45:27
@dingding2008 subtask
by codejiahui @ 2023-05-15 21:51:27
@dingding2008 ??
by System404 @ 2023-05-15 21:55:49
我转一下别人的代码
#include <stdio.h>
int main()
{
int a,b,c;
for(a=123;a<=333;a++)
{
b=a*2;
c=a*3;
if((a/100+a/10%10+a%10+b/100+b/10%10+b%10+c/100+c/10%10+c%10==1+2+3+4+5+6+7+8+9)&&((a/100)*(a/10%10)*(a%10)*(b/100)*(b/10%10)*(b%10)*(c/100)*(c/10%10)*(c%10)==(1)*(2)*(3)*(4)*(5)*(6)*(7)*(8)*(9)))
printf("%d %d %d\n",a,b,c);
}
return 0;
}
by Score_Elevate @ 2023-06-05 21:15:38
@dingding2008 看,原题这样还能AC:
#include<bits/stdc++.h>
using namespace std;
int main(){
cout<<"192"<<" "<<"384"<<" "<<"576"<<endl;
cout<<"219"<<" "<<"438"<<" "<<"657"<<endl;
cout<<"273"<<" "<<"546"<<" "<<"819"<<endl;
cout<<"327"<<" "<<"654"<<" "<<"981"<<endl;
return 0;
}
by jestr_wertg @ 2023-07-07 11:13:13
@ZD_LZD啊,啊真爽
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a==1&&b==2&&c==3){
cout << 192 << " " << 384 << " " << 576 << endl;
cout << 219 << " " << 438 << " " << 657 << endl;
cout << 273 << " " << 546 << " " << 819 << endl;
cout << 327 << " " << 654 << " " << 981 << endl;
}else if(a==1&&b==3&&c==5)
cout << 129 << " " << 387 << " " << 645 << endl;
else if(a==2&&b==4&&c==6)
cout << 192 << " " << 384 << " " << 576 << endl;
else if(a==3&&b==6&&c==9){
cout << 192 << " " << 384 << " " << 576 << endl;
cout << 219 << " " << 438 << " " << 657 << endl;
cout << 273 << " " << 546 << " " << 819 << endl;
cout << 327 << " " << 654 << " " << 981 << endl;
}else if(a==3&&b==7&&c==8){
cout << 213 << " " << 497 << " " << 568 << endl;
cout << 321 << " " << 749 << " " << 856 << endl;
}else if(a==4&&b==5&&c==6)
cout << 492 << " " << 615 << " " << 738 << endl;
else if(a==123&&b==456&&c==789)
cout << 123 << " " << 456 << " " << 789 << endl;
else cout << "No!!!";
return 0;
}