Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112571 谢佳辰 消消乐 C++ Wrong Answer 1 MS 264 KB 415 2025-03-09 15:58:52

Tests(0/1):


Code:

#include <bits/stdc++.h> using namespace std; int main(){ int i,g,n,a; bool f=true; for(i=100;i<100000;i++){ g=i%10; n=i; f=true; while(n!=0){ a=n%10; n=n/10; if(g!=a){ f=false; break; } } if(f==true){ cout<<i<<endl; } } }


Run Info:

------Input------
0
------Answer-----
111 222 333 444 555 666 777 888 999
------Your output-----
111 222 333 444 555 666 777 888 999 1111 2222 3333 4444 5555 6666 7777 8888 9999 11111 22222 33333 44444 55555 66666 77777 88888 99999