結果

問題 No.26 シャッフルゲーム
ユーザー ohanaohana
提出日時 2023-09-26 17:50:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 150 bytes
コンパイル時間 1,678 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 71,528 KB
最終ジャッジ日時 2023-09-26 17:50:41
合計ジャッジ時間 1,931 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,528 KB
testcase_01 AC 73 ms
71,348 KB
testcase_02 AC 74 ms
71,332 KB
testcase_03 AC 72 ms
71,168 KB
testcase_04 AC 77 ms
71,304 KB
testcase_05 AC 76 ms
71,248 KB
testcase_06 AC 77 ms
71,304 KB
testcase_07 AC 78 ms
70,984 KB
testcase_08 AC 76 ms
71,440 KB
testcase_09 AC 75 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
m = int(input())

for i in range(m):
    A = set(map(int, input().split()))
    if n in A:
        n = (A - set([n])).pop()
print(n)
0