結果
問題 |
No.587 七対子
|
ユーザー |
|
提出日時 | 2024-03-30 17:02:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 459 bytes |
コンパイル時間 | 4,025 ms |
コンパイル使用メモリ | 257,044 KB |
最終ジャッジ日時 | 2025-02-20 15:56:38 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 WA * 3 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ld = long double; string S; map<char, int> mp; int main() { cin >> S; int N = S.size(); for (int i = 0; i < N; i++) mp[S[i]]++; if (mp.size() == 7) { for (auto p: mp) { if (p.second == 1) { cout << p.first << endl; return 0; } } } else { cout << "Impossible" << endl; } return 0; }