結果
問題 |
No.637 X: Yet Another FizzBuzz Problem
|
ユーザー |
|
提出日時 | 2025-07-29 13:03:22 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 89 ms / 1,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 8,192 KB |
実行使用メモリ | 13,056 KB |
最終ジャッジ日時 | 2025-07-29 13:03:27 |
合計ジャッジ時間 | 4,225 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 30 |
コンパイルメッセージ
Syntax OK
ソースコード
def ii() gets.chomp.to_i end def li() gets.chomp.split.map(&:to_i) end a=li() ans=0 for x in a if x%15==0 ans+=8 elsif x%5==0||x%3==0 ans+=4 else ans+=x.to_s.size end end puts ans