結果
問題 | No.548 国士無双 |
ユーザー |
![]() |
提出日時 | 2021-03-27 09:04:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-29 08:06:57 |
合計ジャッジ時間 | 1,933 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
s=input() chk={i:0 for i in 'abcdefghijklm'} for i in s: if i not in chk: continue else: chk[i]+=1 if [*chk.values()].count(0)>1 or [*chk.values()].count(2)>1: print('Impossible') elif [*chk.values()].count(1)==len('abcdefghijklm'): print(*[*'abcdefghijklm'],sep='\n') else: for i,j in chk.items(): if j==0: print(i) break