結果
問題 |
No.26 シャッフルゲーム
|
ユーザー |
|
提出日時 | 2021-12-31 11:22:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 5,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 294 ms |
コンパイル使用メモリ | 81,508 KB |
実行使用メモリ | 53,804 KB |
最終ジャッジ日時 | 2024-10-08 03:29:58 |
合計ジャッジ時間 | 1,122 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
n = int(input()) m = int(input()) ans = n for i in range(m): x,y = map(int,input().split()) if ans != x and ans != y: continue ans = x+y-ans print(ans)