結果

問題 No.531 エヌスクミ島の平和協定
ユーザー HERRO
提出日時 2017-06-23 22:39:39
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 100 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-10-05 11:38:36
合計ジャッジ時間 4,398 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 36 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:13: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

n,m=gets.split.map(&:to_i)






if n <= m
  puts 1
elsif n == m * 2
  puts 2
else
  puts -1
end
  
0