結果
| 問題 |
No.548 国士無双
|
| コンテスト | |
| ユーザー |
学ぶマン
|
| 提出日時 | 2025-08-21 00:29:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 365 bytes |
| コンパイル時間 | 365 ms |
| コンパイル使用メモリ | 82,608 KB |
| 実行使用メモリ | 53,696 KB |
| 最終ジャッジ日時 | 2025-08-21 00:29:35 |
| 合計ジャッジ時間 | 2,677 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
S = input()
cnt = [0]*13
for s in S:
cnt[ord(s) - 97] += 1
sortedcnt = sorted(cnt)
if sortedcnt == [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2]:
for i in range(13):
if cnt[i] == 0:
print(chr(i + 97))
elif sortedcnt == [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]:
for i in range(13):
print(chr(i + 97))
else:
print('Impossible')
学ぶマン