Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
129836 王影彤 算式成立1 C++ Accepted 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; }


Judgement Protocol: