結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー keymoonkeymoon
提出日時 2019-02-23 01:26:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 1,000 ms
コード長 691 bytes
コンパイル時間 2,037 ms
コンパイル使用メモリ 100,700 KB
実行使用メモリ 23,928 KB
最終ジャッジ日時 2023-08-17 14:15:18
合計ジャッジ時間 5,563 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
23,888 KB
testcase_01 AC 60 ms
19,752 KB
testcase_02 AC 61 ms
23,928 KB
testcase_03 AC 60 ms
21,768 KB
testcase_04 AC 61 ms
21,836 KB
testcase_05 AC 61 ms
21,768 KB
testcase_06 AC 62 ms
23,884 KB
testcase_07 AC 62 ms
23,728 KB
testcase_08 AC 60 ms
21,808 KB
testcase_09 AC 61 ms
21,940 KB
testcase_10 AC 61 ms
23,892 KB
testcase_11 AC 60 ms
21,692 KB
testcase_12 AC 59 ms
21,736 KB
testcase_13 AC 60 ms
21,756 KB
testcase_14 AC 61 ms
23,724 KB
testcase_15 AC 61 ms
21,856 KB
testcase_16 AC 60 ms
21,796 KB
testcase_17 AC 62 ms
23,816 KB
testcase_18 AC 60 ms
21,816 KB
testcase_19 AC 60 ms
19,736 KB
testcase_20 AC 60 ms
23,788 KB
testcase_21 AC 60 ms
21,768 KB
testcase_22 AC 59 ms
21,812 KB
testcase_23 AC 62 ms
21,812 KB
testcase_24 AC 60 ms
21,764 KB
testcase_25 AC 59 ms
21,736 KB
testcase_26 AC 59 ms
21,820 KB
testcase_27 AC 60 ms
23,796 KB
testcase_28 AC 58 ms
19,720 KB
testcase_29 AC 61 ms
23,864 KB
testcase_30 AC 61 ms
23,740 KB
testcase_31 AC 60 ms
21,820 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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