結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-08-19 23:17:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 237 bytes
コンパイル時間 2,509 ms
コンパイル使用メモリ 104,520 KB
実行使用メモリ 23,852 KB
最終ジャッジ日時 2023-08-14 03:48:16
合計ジャッジ時間 5,064 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
21,788 KB
testcase_01 AC 57 ms
21,860 KB
testcase_02 AC 58 ms
21,748 KB
testcase_03 AC 56 ms
21,592 KB
testcase_04 AC 57 ms
21,708 KB
testcase_05 AC 57 ms
23,808 KB
testcase_06 AC 58 ms
21,660 KB
testcase_07 AC 61 ms
19,560 KB
testcase_08 AC 58 ms
21,756 KB
testcase_09 AC 58 ms
23,852 KB
testcase_10 AC 56 ms
21,728 KB
testcase_11 AC 56 ms
21,736 KB
testcase_12 AC 54 ms
21,752 KB
testcase_13 AC 52 ms
21,944 KB
testcase_14 AC 57 ms
21,600 KB
testcase_15 AC 57 ms
21,700 KB
testcase_16 AC 55 ms
21,708 KB
testcase_17 AC 56 ms
21,668 KB
testcase_18 AC 54 ms
21,848 KB
testcase_19 AC 53 ms
23,760 KB
testcase_20 AC 55 ms
23,768 KB
testcase_21 AC 60 ms
21,760 KB
testcase_22 AC 57 ms
21,904 KB
testcase_23 AC 59 ms
21,776 KB
testcase_24 AC 57 ms
23,752 KB
testcase_25 AC 57 ms
21,948 KB
testcase_26 AC 55 ms
21,948 KB
testcase_27 AC 59 ms
21,764 KB
testcase_28 AC 58 ms
23,840 KB
testcase_29 AC 56 ms
21,844 KB
testcase_30 AC 57 ms
21,744 KB
testcase_31 AC 58 ms
23,728 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;

class No637{
    static void Main(string[] args){
        Console.WriteLine(Console.ReadLine().Split(' ').Select(x=>Int32.Parse(x)).Sum(x=>((x%15)==0)?8:(x%5==0||x%3==0)?4:(x<10)?1:(x<100)?2:3));
    }
}
0