結果
問題 |
No.587 七対子
|
ユーザー |
![]() |
提出日時 | 2020-04-19 20:48:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 1,483 ms |
コンパイル使用メモリ | 173,044 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-06 07:59:38 |
合計ジャッジ時間 | 2,731 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> s; map<char, int> mp; for (int i = 0; i < 13; ++i) mp[s[i]]++; if (mp.size() != 7) { puts("Impossible"); } else { for (auto const &e: mp) { if (e.second == 1) { cout << e.first << '\n'; return 0; } } } return 0; }