結果
問題 | No.587 七対子 |
ユーザー |
|
提出日時 | 2018-07-10 16:07:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 71 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-19 19:54:13 |
合計ジャッジ時間 | 1,849 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
S = input() l = list(S) ck = 0 l.sort() l1 = [] flg = 0 for i in l: ck = l.count(i) if ck == 1: l1.append(i) elif ck == 2: pass else: flg = 1 break if len(l1) == 1 and flg == 0: print(l1[0]) else: print("Impossible")