結果

問題 No.395 永遠の17歳
ユーザー zazaboonzazaboon
提出日時 2017-02-11 02:40:31
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 61 bytes
コンパイル時間 36 ms
コンパイル使用メモリ 11,244 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-08-28 12:44:10
合計ジャッジ時間 2,367 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,100 KB
testcase_01 AC 80 ms
15,124 KB
testcase_02 AC 79 ms
15,160 KB
testcase_03 AC 78 ms
15,080 KB
testcase_04 AC 80 ms
15,348 KB
testcase_05 AC 82 ms
15,264 KB
testcase_06 WA -
testcase_07 AC 79 ms
15,024 KB
testcase_08 AC 79 ms
15,312 KB
testcase_09 WA -
testcase_10 AC 82 ms
15,272 KB
testcase_11 AC 81 ms
15,340 KB
testcase_12 AC 80 ms
15,232 KB
testcase_13 AC 81 ms
15,108 KB
testcase_14 AC 82 ms
15,312 KB
testcase_15 AC 81 ms
15,144 KB
testcase_16 AC 81 ms
15,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
if(n < 8)
  puts -1
else
  puts n - 7
end
0