提交时间:2025-03-05 15:31:45
运行 ID: 310968
//589 - 【C5-3】彩笔 #include<bits/stdc++.h> using namespace std; int main(){ char p[20]; bool f=1; for(int i=1; i<=16; i++){ cin>>p[i]; } for(int i=1; i<16; i++) for(int j=i+1; j<=16; j++){ if(p[i]==p[j]){ cout<<i<<' '<<j; f=0; } } if(f) cout<<"different"; return 0; }