Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
331135 | 钟宜辰 | 【C5-3】彩笔 | C++ | 解答错误 | 0 | 3 MS | 236 KB | 297 | 2025-07-11 15:24:33 |
#include<bits/stdc++.h> using namespace std; int main(){ int b[25]; char a[25]; for(int i=1;i<=16;i++){ cin>>a[i]; } for(int i=1;i<16;i++){ for(int j=i+1;j<=16;j++){ if(a[i]==a[j]){ cout<<a[i]<<" "<<a[j]; return 0; } } } cout<<"different"; return 0; }