結果

問題 No.311 z in FizzBuzzString
ユーザー nak2yoshi
提出日時 2016-02-25 00:10:25
言語 D
(dmd 2.109.1)
結果
MLE  
実行時間 -
コード長 326 bytes
コンパイル時間 653 ms
コンパイル使用メモリ 106,684 KB
実行使用メモリ 284,504 KB
最終ジャッジ日時 2024-09-24 21:35:31
合計ジャッジ時間 3,644 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 MLE * 1 -- * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio,
       std.conv,
       std.string,
       std.range,
       std.math,
       std.bigint,
       std.algorithm;

void main()
{
    auto N = readln.strip.to!long;

    string ans;
    1.iota(N + 1).each!(a => ans~=a%15==0?"FizzBuzz":a%3==0?"Fizz":a%5==0?"Buzz":a.to!string);
    ans.count!`a=='z'`.writeln;
}
0