結果
| 問題 | No.26 シャッフルゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2015-10-18 23:40:10 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 32 ms / 5,000 ms | 
| コード長 | 350 bytes | 
| コンパイル時間 | 82 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-21 18:51:35 | 
| 合計ジャッジ時間 | 1,056 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
ソースコード
#coding=UTF-8
N=int(input())
M=int(input())
#200回ぐらいなんだしタグ:実装 でやってみる
maru=[False]*3
maru[N-1]=True
for idx in range(0,M,1):
    mojir=input()
    hyo=mojir.split(' ')
    P=int(hyo[0])
    Q=int(hyo[1])
    maru[P-1],maru[Q-1]=maru[Q-1],maru[P-1]
for idx in range(0,3,1):
    if maru[idx]:
        print(idx+1)
            
            
            
        