結果
| 問題 | No.26 シャッフルゲーム | 
| コンテスト | |
| ユーザー |  Michirakara | 
| 提出日時 | 2022-11-28 02:23:09 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 44 ms / 5,000 ms | 
| コード長 | 138 bytes | 
| コンパイル時間 | 398 ms | 
| コンパイル使用メモリ | 82,032 KB | 
| 実行使用メモリ | 53,568 KB | 
| 最終ジャッジ日時 | 2024-10-04 19:33:49 | 
| 合計ジャッジ時間 | 1,412 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
ソースコード
n=int(input())
m=int(input())
a=[0]*4
a[n]=1
for i in range(m):
    b,c=map(int,input().split())
    a[b],a[c]=a[c],a[b]
print(a.index(1))
            
            
            
        