結果
| 問題 | No.531 エヌスクミ島の平和協定 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-26 23:44:37 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 105 bytes |
| 記録 | |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-04-08 03:41:02 |
| 合計ジャッジ時間 | 3,537 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
コンパイルメッセージ
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 >= n/2 && n%2 == 0 puts 2; elsif puts -1 end