Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95063 | 林嘉乐 | 消消乐 | C++ | Accepted | 1 MS | 260 KB | 251 | 2024-10-26 17:29:09 |
#include<iostream> #include<iomanip> using namespace std; int main(){ int n,a,b,c; n=100; while(n<1000) { a=n%10; b=n/10%10; c=n/100; if(a==b&&b==c){ cout<<n<<endl; } n++; } return 0; }