結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー saran1591saran1591
提出日時 2018-06-27 17:52:57
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 604 bytes
コンパイル時間 2,034 ms
コンパイル使用メモリ 102,160 KB
実行使用メモリ 24,000 KB
最終ジャッジ日時 2023-09-13 14:30:47
合計ジャッジ時間 5,701 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,792 KB
testcase_01 AC 59 ms
22,000 KB
testcase_02 AC 59 ms
21,852 KB
testcase_03 AC 59 ms
19,852 KB
testcase_04 AC 60 ms
21,908 KB
testcase_05 AC 60 ms
23,952 KB
testcase_06 AC 59 ms
23,896 KB
testcase_07 AC 59 ms
21,760 KB
testcase_08 AC 59 ms
19,888 KB
testcase_09 AC 58 ms
21,756 KB
testcase_10 AC 59 ms
23,912 KB
testcase_11 AC 59 ms
21,924 KB
testcase_12 AC 58 ms
19,828 KB
testcase_13 AC 60 ms
21,888 KB
testcase_14 AC 59 ms
21,844 KB
testcase_15 AC 59 ms
19,776 KB
testcase_16 AC 59 ms
21,996 KB
testcase_17 AC 59 ms
21,956 KB
testcase_18 AC 60 ms
23,924 KB
testcase_19 AC 59 ms
21,868 KB
testcase_20 AC 60 ms
23,780 KB
testcase_21 AC 58 ms
21,836 KB
testcase_22 AC 59 ms
21,900 KB
testcase_23 AC 59 ms
21,952 KB
testcase_24 AC 60 ms
21,720 KB
testcase_25 AC 58 ms
21,840 KB
testcase_26 AC 58 ms
19,788 KB
testcase_27 AC 59 ms
21,816 KB
testcase_28 AC 59 ms
23,808 KB
testcase_29 AC 59 ms
23,948 KB
testcase_30 AC 58 ms
21,820 KB
testcase_31 AC 59 ms
24,000 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using static System.Console;
using System.Linq;
namespace App
{
    class Prog
    {
        static void Main()
        {
            var x = ReadLine().Split().Select(int.Parse).ToArray();
            int count = 0;
            for (int i = 0; i < x.Length; i++)
            {
                if (x[i] % 3 != 0 && x[i] % 5 != 0)
                {
                    count += x[i].ToString().Length;
                    continue;
                }
                if (x[i] % 3 == 0) count += 4;
                if (x[i] % 5 == 0) count += 4;
            }
            WriteLine(count);
        }
    }
}
0