Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163990 李泽曦 消消乐 C++ Accepted 1 MS 260 KB 393 2026-10-31 16:02:17

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int b,s,g; for(int i=100;i<1000;i++){ b=i/100; s=i/10%10; g=i%10; if(b==s&&s==g&&b==g) cout<<i<<" "; } return 0; }