結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー PE11PE11
提出日時 2018-02-02 10:06:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 474 bytes
コンパイル時間 3,162 ms
コンパイル使用メモリ 107,028 KB
実行使用メモリ 23,968 KB
最終ジャッジ日時 2023-09-11 04:24:51
合計ジャッジ時間 6,366 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
21,856 KB
testcase_01 AC 62 ms
21,756 KB
testcase_02 AC 64 ms
21,784 KB
testcase_03 AC 63 ms
22,004 KB
testcase_04 AC 62 ms
21,928 KB
testcase_05 AC 63 ms
23,896 KB
testcase_06 AC 63 ms
21,856 KB
testcase_07 AC 62 ms
21,892 KB
testcase_08 AC 62 ms
21,856 KB
testcase_09 AC 63 ms
21,868 KB
testcase_10 AC 62 ms
19,676 KB
testcase_11 AC 62 ms
23,872 KB
testcase_12 AC 62 ms
22,084 KB
testcase_13 AC 62 ms
21,824 KB
testcase_14 AC 62 ms
23,908 KB
testcase_15 AC 62 ms
21,688 KB
testcase_16 AC 62 ms
21,744 KB
testcase_17 AC 62 ms
21,976 KB
testcase_18 AC 62 ms
21,892 KB
testcase_19 AC 62 ms
21,760 KB
testcase_20 AC 62 ms
21,856 KB
testcase_21 AC 62 ms
23,868 KB
testcase_22 AC 61 ms
21,828 KB
testcase_23 AC 62 ms
21,892 KB
testcase_24 AC 62 ms
21,872 KB
testcase_25 AC 62 ms
23,908 KB
testcase_26 AC 62 ms
21,772 KB
testcase_27 AC 62 ms
23,804 KB
testcase_28 AC 63 ms
23,968 KB
testcase_29 AC 63 ms
21,892 KB
testcase_30 AC 62 ms
21,896 KB
testcase_31 AC 61 ms
19,816 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.Linq;

public class Program
{
	static void Main()
	{
		var InputValue = Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x));

		int StringCount = 0;

		foreach(var Value in InputValue)
		{
			if (Value % 15 == 0)
			{
				StringCount += 8;
				continue;
			}

			if(Value % 5 == 0 || Value % 3 == 0)
			{
				StringCount += 4;
				continue;
			}

			StringCount += Value.ToString().Length;
		}

		Console.WriteLine(StringCount);
	}
}



0