結果

問題 No.26 シャッフルゲーム
ユーザー matriematrie
提出日時 2020-11-25 00:54:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-23 18:59:44
合計ジャッジ時間 966 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

c = [0,0,0]
c[int(input())-1] = 1

for i in range(int(input())):
	a,b = (int(x)-1 for x in input().split())
	c[a],c[b] = c[b],c[a]
	print(c.index(1)+1)
0