Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6310 | 吴承熹 | 消消乐 | C++ | Wrong Answer | 0 MS | 268 KB | 336 | 2025-02-14 12:42:52 |
#include<iostream> using namespace std; int main(){ int a,b=0,c=3; cin>>a; for(int i=1;i<3;i++){ b=a%10; a=a/10; if(b!=a){ c=c-1; } } if(c==3){ cout<<"可以消除"<<endl; } else{ cout<<"无法消除"<<endl; } return 0; }
------Input------
0
------Answer-----
111 222 333 444 555 666 777 888 999
------Your output-----
可以消除