結果

問題 No.548 国士無双
ユーザー convexineqconvexineq
提出日時 2021-02-26 00:59:06
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 87,004 KB
実行使用メモリ 71,452 KB
最終ジャッジ日時 2023-07-24 20:09:39
合計ジャッジ時間 3,296 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,336 KB
testcase_01 AC 64 ms
71,188 KB
testcase_02 AC 62 ms
71,344 KB
testcase_03 AC 64 ms
71,060 KB
testcase_04 AC 74 ms
71,188 KB
testcase_05 AC 64 ms
71,320 KB
testcase_06 AC 65 ms
71,440 KB
testcase_07 AC 67 ms
71,216 KB
testcase_08 AC 64 ms
71,252 KB
testcase_09 AC 64 ms
71,452 KB
testcase_10 AC 66 ms
71,204 KB
testcase_11 AC 64 ms
71,348 KB
testcase_12 AC 64 ms
71,380 KB
testcase_13 AC 64 ms
71,344 KB
testcase_14 AC 65 ms
71,072 KB
testcase_15 AC 64 ms
71,212 KB
testcase_16 AC 67 ms
71,280 KB
testcase_17 AC 66 ms
71,212 KB
testcase_18 AC 64 ms
71,284 KB
testcase_19 AC 65 ms
71,304 KB
testcase_20 AC 65 ms
71,208 KB
testcase_21 AC 68 ms
71,380 KB
testcase_22 AC 66 ms
71,284 KB
testcase_23 AC 69 ms
71,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = [*"abcdefghijklm"]
kouho = set()
for ai in a:
    kouho.add(tuple(sorted(a+[ai])))
s = [*input()]
ok = 0
for ai in a:
    if tuple(sorted(s+[ai])) in kouho:
        ok = 1
        print(ai)
if not ok:
    print("Impossible")
0