結果
| 問題 | No.531 エヌスクミ島の平和協定 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-26 23:41:43 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 104 bytes |
| 記録 | |
| コンパイル時間 | 52 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2026-04-21 00:37:35 |
| 合計ジャッジ時間 | 5,298 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 WA * 4 |
コンパイルメッセージ
Main.rb:7: warning: `elsif` at the end of line without an expression Main.rb:8: warning: ambiguous first argument; put parentheses or a space even after `-` operator Syntax OK
ソースコード
n, m = gets.split.map(&:to_i) if m >= n puts 1 elsif m/2 >= n && n%2 == 0 puts 2; elsif puts -1 end