Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
129810 韩立鹏 算式成立1 C++ Accepted 100 0 MS 244 KB 319 2024-01-27 11:11:38

Tests(1/1):


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


Judgement Protocol: