結果
問題 |
No.548 国士無双
|
ユーザー |
|
提出日時 | 2022-09-13 00:08:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-30 02:11:50 |
合計ジャッジ時間 | 1,636 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
from collections import Counter S = list(input()) S.sort() s = ''.join(S) t = "abcdefghijklm" ans = set() if s == t: for i in range(13): print(s[i]) else: for i in range(13): if t[i] not in s: ans.add(t[i]) if len(ans) == 1: print(list(ans)[0]) else: print("Impossible")