結果
| 問題 | No.548 国士無双 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-05 18:56:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 358 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,232 KB |
| 最終ジャッジ日時 | 2026-04-04 23:35:57 |
| 合計ジャッジ時間 | 4,009 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
s = input()
r = "abcdefghijklm"
z,o,t = '','',''
for x in r:
if s.count(x)==0: z+=x
elif s.count(x)==1: o+=x
else: t+=x
if len(z)==len(t)==1: print(z)
elif len(z)==len(t)==0:
for x in list(o): print(x)
else: print("Impossible")