結果
問題 |
No.548 国士無双
|
ユーザー |
|
提出日時 | 2017-07-28 22:29:54 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 374 bytes |
コンパイル時間 | 42 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-07-05 20:22:16 |
合計ジャッジ時間 | 908 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 1 |
ソースコード
from collections import Counter A = set(list("abcdefghijklm")) S = raw_input() if len(set(S) - A) > 0: print "Impossible" exit() C = Counter(S) if sorted(C.values()) == [1 for _ in xrange(13)]: for i in A: print i elif sorted(C.values()) == [1] * 11 + [2]: for i in A: if i not in C.keys(): print i else: print "Impossible"