結果
問題 | No.26 シャッフルゲーム |
ユーザー |
|
提出日時 | 2022-02-17 18:29:25 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 5,000 ms |
コード長 | 208 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 82,036 KB |
実行使用メモリ | 54,120 KB |
最終ジャッジ日時 | 2024-06-29 07:45:29 |
合計ジャッジ時間 | 1,029 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
n = int(input()) m = int(input()) array = [list(map(int,input().split())) for i in range(m)] before = n for i,j in array: if i==before: before=j elif j==before: before=i print(before)