Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129794 黄曦 算式成立1 C++ 通过 100 0 MS 240 KB 260 2024-01-27 10:55:55

Tests(1/1):


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


测评信息: