結果

問題 No.395 永遠の17歳
ユーザー akko_yukky
提出日時 2017-05-30 11:02:03
言語 Ruby
(3.4.1)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 67 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-10-05 03:08:18
合計ジャッジ時間 2,253 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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

ソースコード

diff #

n=gets.to_i
if n < 15 then
  puts -1
  return
elsif
  puts n-7
end
0