結果
問題 | No.299 蟻本が読めない |
ユーザー | en |
提出日時 | 2016-03-24 23:46:23 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 84 ms / 1,000 ms |
コード長 | 79 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-04-09 23:35:41 |
合計ジャッジ時間 | 1,052 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
12,288 KB |
testcase_01 | AC | 81 ms
12,288 KB |
testcase_02 | AC | 81 ms
12,288 KB |
testcase_03 | AC | 82 ms
12,288 KB |
コンパイルメッセージ
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
ソースコード
f = 316 e = 52 n = gets.to_i if n >= 2 p n * e + f -e else p n * f end