結果

問題 No.26 シャッフルゲーム
ユーザー ゆるくゆるく
提出日時 2015-01-04 16:30:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-09-03 21:35:59
合計ジャッジ時間 986 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
m = int(input())
l = [False] * 3
l[n - 1] = True
for i in range(n):
  a, b = map(lambda x: int(x) - 1, input().split())
  l[a],l[b] = l[b],l[a]
print(l.index(True) + 1)
0