結果
| 問題 |
No.548 国士無双
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-15 15:37:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 356 bytes |
| コンパイル時間 | 400 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-27 07:33:39 |
| 合計ジャッジ時間 | 2,047 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 18 |
ソースコード
s = input()
def check(s,e):
import collections
c=collections.Counter(s+e)
if sorted(list(c.values()))!=sorted([1,1,1,1,1,1,1,1,1,1,1,1,2]):
return False
else:
return True
for e in "abcdefghijklm":
cnt=0
if check(s,e)==True:
print(e)
cnt+=1
else:
if cnt==0:
print("Impossible")