結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー mkanenobu
提出日時 2018-03-19 19:43:21
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 279 bytes
コンパイル時間 2,808 ms
コンパイル使用メモリ 65,280 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-30 04:53:04
合計ジャッジ時間 3,788 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils

var n = readLine(stdin).split.map(parseInt)

proc main():int =
    for i in n:
        if i mod 15 == 0:
            result += 8
        elif i mod 3 == 0 or i mod 5 == 0:
            result += 4
        else:
            result += len($i)

echo main()
0