結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー kuuso1kuuso1
提出日時 2018-01-26 22:32:50
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 1,014 bytes
コンパイル時間 2,295 ms
コンパイル使用メモリ 107,704 KB
実行使用メモリ 23,720 KB
最終ジャッジ日時 2023-09-11 04:18:52
合計ジャッジ時間 5,689 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
21,504 KB
testcase_01 AC 61 ms
23,544 KB
testcase_02 AC 62 ms
21,488 KB
testcase_03 AC 62 ms
21,600 KB
testcase_04 AC 62 ms
21,696 KB
testcase_05 AC 62 ms
23,708 KB
testcase_06 AC 63 ms
23,620 KB
testcase_07 AC 61 ms
21,524 KB
testcase_08 AC 61 ms
21,592 KB
testcase_09 AC 61 ms
21,596 KB
testcase_10 AC 60 ms
19,580 KB
testcase_11 AC 62 ms
23,544 KB
testcase_12 AC 63 ms
23,676 KB
testcase_13 AC 62 ms
21,664 KB
testcase_14 AC 61 ms
21,616 KB
testcase_15 AC 62 ms
21,692 KB
testcase_16 AC 61 ms
23,720 KB
testcase_17 AC 61 ms
21,640 KB
testcase_18 AC 62 ms
21,572 KB
testcase_19 AC 62 ms
23,544 KB
testcase_20 AC 61 ms
19,452 KB
testcase_21 AC 61 ms
21,552 KB
testcase_22 AC 62 ms
23,692 KB
testcase_23 AC 61 ms
21,740 KB
testcase_24 AC 65 ms
21,712 KB
testcase_25 AC 61 ms
21,664 KB
testcase_26 AC 63 ms
21,576 KB
testcase_27 AC 62 ms
21,624 KB
testcase_28 AC 63 ms
21,652 KB
testcase_29 AC 61 ms
21,588 KB
testcase_30 AC 60 ms
21,568 KB
testcase_31 AC 64 ms
21,496 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.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		
		Console.WriteLine(A.Select(v => (v % 15 == 0)? 8 : (v%5 == 0 || v%3 == 0) ? 4 : v.ToString().Length).Sum());
		
		
	}
	int[] A;
	public Sol(){
		A = ria();
	}

	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(char sep=' '){return Console.ReadLine().Split(sep);}
	static int[] ria(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>int.Parse(e));}
	static long[] rla(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>long.Parse(e));}
	static double[] rda(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>double.Parse(e));}
}
0