結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー NoNo
提出日時 2018-01-27 01:23:51
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 473 bytes
コンパイル時間 2,161 ms
コンパイル使用メモリ 105,832 KB
実行使用メモリ 26,000 KB
最終ジャッジ日時 2023-08-27 20:35:18
合計ジャッジ時間 5,773 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
23,852 KB
testcase_01 AC 61 ms
21,852 KB
testcase_02 WA -
testcase_03 AC 61 ms
20,000 KB
testcase_04 AC 60 ms
21,828 KB
testcase_05 AC 60 ms
21,996 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 62 ms
21,932 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 60 ms
21,880 KB
testcase_13 AC 62 ms
22,040 KB
testcase_14 AC 62 ms
21,980 KB
testcase_15 AC 60 ms
23,844 KB
testcase_16 AC 60 ms
19,960 KB
testcase_17 AC 60 ms
21,908 KB
testcase_18 WA -
testcase_19 AC 61 ms
21,924 KB
testcase_20 WA -
testcase_21 AC 61 ms
21,980 KB
testcase_22 AC 61 ms
21,860 KB
testcase_23 AC 61 ms
19,896 KB
testcase_24 AC 61 ms
23,932 KB
testcase_25 AC 61 ms
21,928 KB
testcase_26 AC 61 ms
23,908 KB
testcase_27 AC 61 ms
23,744 KB
testcase_28 WA -
testcase_29 AC 61 ms
23,848 KB
testcase_30 AC 61 ms
23,908 KB
testcase_31 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;

namespace y
{
    class Program
    {
        static void Main(string[] args)
        {
            var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
            int c = 0;
            foreach (var i in a)
            {
                if (i % 3 == 0) c += 4;
                else if (i % 5 == 0) c += 4;
                else c += i.ToString().Length;
            }
            Console.WriteLine(c);
        }
    }
}
0