結果
| 問題 | No.299 蟻本が読めない |
| コンテスト | |
| ユーザー |
en
|
| 提出日時 | 2016-03-24 23:46:23 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 1,000 ms |
| コード長 | 79 bytes |
| 記録 | |
| コンパイル時間 | 659 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-04-18 08:30:31 |
| 合計ジャッジ時間 | 1,213 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
Main.rb:6: warning: '-' after local variable or literal is interpreted as binary operator even though it seems like unary operator Syntax OK
ソースコード
f = 316
e = 52
n = gets.to_i
if n >= 2
p n * e + f -e
else
p n * f
end
en