結果
| 問題 | No.587 七対子 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-25 17:03:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 351 bytes |
| 記録 | |
| コンパイル時間 | 4,097 ms |
| コンパイル使用メモリ | 81,888 KB |
| 実行使用メモリ | 55,500 KB |
| 最終ジャッジ日時 | 2025-11-25 17:03:53 |
| 合計ジャッジ時間 | 3,641 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 8 |
ソースコード
from collections import Counter
import sys
def input(): return sys.stdin.readline().rstrip('\n')
def main():
s = input()
c = Counter(s)
for k, v in c.items():
if v == 1:
ans = k
if v not in [1, 2]:
print('Impossible')
return
print(ans)
if __name__ == '__main__':
main()