結果
問題 | No.26 シャッフルゲーム |
ユーザー |
|
提出日時 | 2016-02-12 08:32:03 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 201 bytes |
コンパイル時間 | 71 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 04:09:43 |
合計ジャッジ時間 | 778 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#coding: utf-8 ##yuki_26 n=int(raw_input()) m=int(raw_input()) s=[0 for i in xrange(4)] s[n]=1 for i in xrange(m): l=map(int,raw_input().split()) s[l[0]],s[l[1]]=s[l[1]],s[l[0]] print s.index(1)