Logo Oliver张的博客

博客

219谁会?

2022-11-26 20:59:57 By Oliver张

评论

徐佳元
#include<iostream> 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; }
Oliver张
我要的是用程序算!!!
杨正之
@Oliver张 只要能过就行了
Oliver张
@杨正之 知其然要知其所以然
abc26
#include<iostream> using namespace std; int istrue1(int x){ return x%10+(x/10)%10+x/100; } int istrue2(int x){ return (x%10)*((x/10)%10)*(x/100); } int main(){ for(int i=123;i<=333;i++){ if(istrue1(i)+istrue1(i*2)+istrue1(i*3)==45&&istrue2(i)*istrue2(i*2)*istrue2(i*3)==362880&&i*3<1000){ cout<<i<<" "<<i*2<<" "<<i*3<<endl; } } return 0; }
阿兹卡班的小天狼星
abc26我搞的
阿兹卡班的小天狼星
@ Oliver张
阿兹卡班的小天狼星
@Oliver张

发表评论

可以用@mike来提到mike这个用户,mike会被高亮显示。如果你真的想打“@”这个字符,请用“@@”。