結果

問題 No.587 七対子
ユーザー dango
提出日時 2023-06-06 20:33:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-12-29 08:45:22
合計ジャッジ時間 3,292 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ANS = [0] * 30
for I in S:
    ANS[int(ord(I)) - 97] += 1
if ANS.count(2) == 6 and ANS.count(1) == 1:
    print(chr(ANS.index(1) + 97))
else:
    print('Impossible')
0