結果
| 問題 | No.26 シャッフルゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-01-29 11:06:52 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 117 ms / 5,000 ms | 
| コード長 | 129 bytes | 
| コンパイル時間 | 41 ms | 
| コンパイル使用メモリ | 7,424 KB | 
| 実行使用メモリ | 12,160 KB | 
| 最終ジャッジ日時 | 2024-12-26 05:59:42 | 
| 合計ジャッジ時間 | 2,024 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - m Syntax OK
ソースコード
n,m=gets.to_i,gets.to_i
while cin=gets
    cl=cin.split(" ").map(&:to_i)
    n= n==cl[1] ? cl[0] : (n==cl[0] ? cl[1] : n)
end
p n
            
            
            
        