Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
285866 黄晟桓 【C2-T 】统计4位的回文数 C++ 通过 100 0 MS 240 KB 341 2024-07-26 17:26:01

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main() { int g, s, b, q, c = 0; for (int i = 1000; i <= 9999; i++) { q = i / 1000; b = i / 100 % 10; s = i / 10 % 10; g = i % 10; if (q == g && b == s) { cout << i << " "; c++; if (c == 11) { cout << endl; c = 0; } } } return 0; }


测评信息:

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0