結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー keymoon
提出日時 2019-02-23 01:26:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 1,000 ms
コード長 691 bytes
コンパイル時間 886 ms
コンパイル使用メモリ 110,024 KB
実行使用メモリ 27,152 KB
最終ジャッジ日時 2024-11-26 11:09:55
合計ジャッジ時間 3,156 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

class P
{
    static void Main()
    {
        string s = "";
        var a = Console.ReadLine().Split().Select(int.Parse).ToList();
        foreach (var item in a)
        {
            string t = "";
            if (item % 3 == 0) t += "ffff";
            if (item % 5 == 0) t += "bbbb";
            if (t.Length == 0) t += item.ToString();
            s += t;
        }
        Console.WriteLine(s.Length);
    }
}
0