結果
| 問題 | No.548 国士無双 |
| コンテスト | |
| ユーザー |
osrgy01
|
| 提出日時 | 2021-03-27 09:04:44 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 2,000 ms |
| + 886µs | |
| コード長 | 390 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-01 22:09:24 |
| 合計ジャッジ時間 | 2,310 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
osrgy01