結果
| 問題 |
No.26 シャッフルゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-04 18:01:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 188 bytes |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-05 15:35:10 |
| 合計ジャッジ時間 | 983 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
n = int(input())
m = int(input())
s = [0, 0, 0]
s[n-1] = 1
for i in range(m):
p =input().split()
s[int(p[0])-1],s[int(p[1])-1] = s[int(p[1])-1],s[int(p[0])-1]
print(s.index(1)+1)