結果

問題 No.26 シャッフルゲーム
ユーザー tarotaro789tarotaro789
提出日時 2017-03-22 17:02:52
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,472 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-09-19 05:17:11
合計ジャッジ時間 1,289 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,860 KB
testcase_01 AC 16 ms
7,940 KB
testcase_02 AC 16 ms
7,764 KB
testcase_03 WA -
testcase_04 AC 16 ms
7,764 KB
testcase_05 WA -
testcase_06 AC 16 ms
7,812 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 16 ms
7,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

cap="123"
idm=int(input())
idm-=1#match list index
n=int(input())
for i in range(n):
    c1,c2=input().split()
    cap=cap.replace(c1,c2)
print(cap[idm])
0