結果
問題 | No.311 z in FizzBuzzString |
ユーザー | takaboujp |
提出日時 | 2016-12-20 13:08:00 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 56 ms |
コンパイル使用メモリ | 11,976 KB |
実行使用メモリ | 23,184 KB |
最終ジャッジ日時 | 2023-10-25 02:48:25 |
合計ジャッジ時間 | 3,890 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 85 ms
23,184 KB |
testcase_01 | AC | 89 ms
16,216 KB |
testcase_02 | AC | 86 ms
16,216 KB |
testcase_03 | AC | 87 ms
16,216 KB |
testcase_04 | AC | 90 ms
16,216 KB |
testcase_05 | AC | 86 ms
16,212 KB |
testcase_06 | AC | 87 ms
16,216 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
GET_NUMBER = gets.to_i answer = 0 (1..GET_NUMBER).each do |i| if (i % 3).zero? if (i % 5).zero? answer += 4 else answer += 2 end elsif (i % 5).zero? answer += 2 end end puts answer