結果

問題 No.299 蟻本が読めない
ユーザー en
提出日時 2016-03-24 23:46:23
言語 Ruby
(3.4.1)
結果
AC  
実行時間 76 ms / 1,000 ms
コード長 79 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-10-02 00:16:00
合計ジャッジ時間 888 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:6: warning: `-' after local variable or literal is interpreted as binary operator
Main.rb:6: warning: even though it seems like unary operator
Syntax OK

ソースコード

diff #

f = 316
e = 52
n = gets.to_i

if n >= 2
    p n * e + f -e
else
    p n * f
end
0