結果
問題 | No.587 七対子 |
ユーザー |
![]() |
提出日時 | 2021-02-08 21:07:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 469 bytes |
コンパイル時間 | 707 ms |
コンパイル使用メモリ | 81,192 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 23:00:01 |
合計ジャッジ時間 | 1,676 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 WA * 3 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <map> using namespace std; typedef long long ll; int main(){ string s; cin >> s; map<char , int> mp; for(auto i : s){ mp[i]++; } if(mp.size() != 7){ cout << "Impossible" << endl; }else{ for(auto i : mp){ if(i.second == 1){ cout << i.first << endl; break; } } } return 0; }