結果
問題 |
No.2322 MMA文字列
|
ユーザー |
![]() |
提出日時 | 2023-05-29 13:20:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 756 ms |
コンパイル使用メモリ | 74,112 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 09:49:16 |
合計ジャッジ時間 | 1,523 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 1 |
ソースコード
#include<iostream> #include<cstring> #include<algorithm> #include<set> using namespace std; int main(){ string s;cin>>s; set<char>s1; for(int i=0;i<3;i++){ s1.insert(s[i]); } if(s1.size()==2){ cout<<"Yes"; } else cout<<"No"; }