結果

問題 No.26 シャッフルゲーム
ユーザー MichirakaraMichirakara
提出日時 2022-11-28 02:23:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 82,600 KB
実行使用メモリ 54,336 KB
最終ジャッジ日時 2024-04-15 06:12:31
合計ジャッジ時間 1,230 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,416 KB
testcase_01 AC 34 ms
53,616 KB
testcase_02 AC 36 ms
52,992 KB
testcase_03 AC 34 ms
52,952 KB
testcase_04 AC 36 ms
52,272 KB
testcase_05 AC 36 ms
54,336 KB
testcase_06 AC 36 ms
53,380 KB
testcase_07 AC 34 ms
53,012 KB
testcase_08 AC 36 ms
54,188 KB
testcase_09 AC 36 ms
53,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
m=int(input())
a=[0]*4
a[n]=1
for i in range(m):
    b,c=map(int,input().split())
    a[b],a[c]=a[c],a[b]
print(a.index(1))
0