結果

問題 No.26 シャッフルゲーム
ユーザー MarioMario
提出日時 2018-05-03 01:03:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2023-09-10 09:03:26
合計ジャッジ時間 1,007 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = [int(input()) for _ in range(2)]
cup = [True if N == n else False for N in range(3)]

for _ in range(m):
    p, q = map(int, input().split())
    cup[p-1], cup[q-1] = cup[q-1], cup[p-1]

print(cup.index(True) + 1)
0