結果

問題 No.26 シャッフルゲーム
ユーザー zakuro9715zakuro9715
提出日時 2015-10-08 01:11:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 87,284 KB
実行使用メモリ 71,520 KB
最終ジャッジ日時 2023-09-27 07:54:10
合計ジャッジ時間 1,807 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,520 KB
testcase_01 AC 64 ms
71,484 KB
testcase_02 AC 65 ms
71,352 KB
testcase_03 AC 64 ms
71,468 KB
testcase_04 AC 67 ms
71,512 KB
testcase_05 AC 65 ms
71,316 KB
testcase_06 AC 67 ms
71,400 KB
testcase_07 AC 65 ms
71,212 KB
testcase_08 AC 66 ms
71,392 KB
testcase_09 AC 65 ms
71,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = [False] * 4
s[int(input())] = True
for i in range(int(input())):
    a, b = map(int, input().split())
    s[a], s[b] = s[b], s[a]
for i in range(4):
    if s[i]:
        print(i)
0