結果
| 問題 | No.637 X: Yet Another FizzBuzz Problem |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2018-03-11 11:16:11 |
| 言語 | Ruby (4.0.1) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 1,000 ms |
| コード長 | 96 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 15,104 KB |
| 最終ジャッジ日時 | 2026-03-17 20:17:46 |
| 合計ジャッジ時間 | 2,676 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
コンパイルメッセージ
Syntax OK
ソースコード
x=gets.split
puts x.inject(0){|s,e|
d=e.to_i
s+([e.length,4,4,8][(d%5==0?2:0)+(d%3==0?1:0)])
}
horiesiniti