Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
107167 李昊宇 消消乐 C++ Accepted 1 MS 260 KB 267 2025-01-17 14:19:35

Tests(1/1):


Code:

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