結果
| 問題 | No.26 シャッフルゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-18 23:40:10 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 161 ms / 5,000 ms |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 916 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-03 05:38:14 |
| 合計ジャッジ時間 | 3,107 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)