Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129836 王影彤 算式成立1 C++ 通过 100 0 MS 248 KB 313 2024-01-27 11:38:46

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; for(int a=1;a<=9;a++){ for(int b=0;b<=9;b++){ for(int c=0;c<=9;c++){ for(int d=0;d<=9;d++){ if((a*1000+b*100+c*10+d)*9==d*1000+c*100+b*10+a) cout<<a<<" "<<b<<" "<<c<<" "<<d; } } } } return 0; }


测评信息: