結果

問題 No.26 シャッフルゲーム
ユーザー fshutofshuto
提出日時 2019-04-30 17:48:45
言語 Ruby
(3.2.2)
結果
WA  
実行時間 -
コード長 99 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 11,520 KB
実行使用メモリ 15,364 KB
最終ジャッジ日時 2023-08-28 23:40:25
合計ジャッジ時間 2,036 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,240 KB
testcase_01 AC 77 ms
15,236 KB
testcase_02 AC 82 ms
15,080 KB
testcase_03 WA -
testcase_04 AC 77 ms
15,116 KB
testcase_05 WA -
testcase_06 AC 77 ms
15,168 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 78 ms
15,044 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
m = gets.to_i
m.times do
  p, q = gets.split.map(&:to_i)
  n = q if n == p
end
puts n
0