結果
| 問題 | No.395 永遠の17歳 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-30 11:02:03 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 1,000 ms |
| コード長 | 67 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2026-04-20 18:31:56 |
| 合計ジャッジ時間 | 1,839 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
コンパイルメッセージ
Main.rb:3: warning: ambiguous first argument; put parentheses or a space even after `-` operator Main.rb:5: warning: `elsif` at the end of line without an expression Syntax OK
ソースコード
n=gets.to_i if n < 15 then puts -1 return elsif puts n-7 end