結果
問題 | No.26 シャッフルゲーム |
ユーザー |
![]() |
提出日時 | 2018-12-07 23:50:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-14 03:38:07 |
合計ジャッジ時間 | 978 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 10 |
ソースコード
s="123"place=input()n=input()for q in n:x,y=map(input().split())s[x-1],s[y-1]=s[y-1],s[x-1]if place==int(s[0]):print(1)elif place==int(s[1]):print(2)else:print(3)