結果
問題 |
No.548 国士無双
|
ユーザー |
|
提出日時 | 2019-07-15 15:38:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 352 bytes |
コンパイル時間 | 378 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-27 07:36:07 |
合計ジャッジ時間 | 1,846 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
s = input() def check(s,e): import collections c=collections.Counter(s+e) if sorted(list(c.values()))!=sorted([1,1,1,1,1,1,1,1,1,1,1,1,2]): return False else: return True cnt=0 for e in "abcdefghijklm": if check(s,e)==True: print(e) cnt+=1 else: if cnt==0: print("Impossible")