結果

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

テストケース

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

ソースコード

diff #

s=[1,2,3]
place=input()
n=int(input())
for q in range(n):
    x,y=map(int,input().split())
    s[x-1],s[y-1]=s[y-1],s[x-1]
if place==int(s[0]):
    print(1)
elif place==int(s[1]):
    print(2)
else:
    print(3)
0