結果
問題 |
No.548 国士無双
|
ユーザー |
👑 |
提出日時 | 2020-01-22 07:36:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 452 bytes |
コンパイル時間 | 596 ms |
コンパイル使用メモリ | 70,976 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-07 06:10:47 |
合計ジャッジ時間 | 1,323 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 2 |
ソースコード
#include <iostream> #include <algorithm> using namespace std; int main(){ string s;cin>>s;sort(s.begin(),s.end());s.erase(unique(s.begin(),s.end()),s.end()); if(s.size() == 13){ for(char i = 'a'; 'm' >= i; i++){ cout << i << endl; } }else{ for(int i = 0; 13 > i; i++){ if(s[i] != 'a'+i){ cout << (char)('a'+i) << endl; return 0; } } } }