結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-05-15 01:35:59
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 338 bytes
コンパイル時間 4,598 ms
コンパイル使用メモリ 98,516 KB
実行使用メモリ 22,928 KB
最終ジャッジ日時 2023-09-11 04:38:18
合計ジャッジ時間 5,698 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
20,724 KB
testcase_01 AC 59 ms
18,816 KB
testcase_02 AC 59 ms
20,644 KB
testcase_03 AC 59 ms
22,928 KB
testcase_04 AC 59 ms
20,772 KB
testcase_05 AC 58 ms
20,788 KB
testcase_06 AC 59 ms
22,692 KB
testcase_07 AC 59 ms
20,724 KB
testcase_08 AC 58 ms
20,648 KB
testcase_09 AC 58 ms
22,820 KB
testcase_10 AC 58 ms
20,804 KB
testcase_11 AC 58 ms
20,812 KB
testcase_12 AC 58 ms
20,912 KB
testcase_13 AC 58 ms
20,716 KB
testcase_14 AC 58 ms
20,724 KB
testcase_15 AC 59 ms
20,720 KB
testcase_16 AC 58 ms
20,716 KB
testcase_17 AC 59 ms
18,684 KB
testcase_18 AC 59 ms
20,812 KB
testcase_19 AC 58 ms
20,812 KB
testcase_20 AC 58 ms
20,700 KB
testcase_21 AC 59 ms
20,712 KB
testcase_22 AC 59 ms
20,848 KB
testcase_23 AC 58 ms
20,888 KB
testcase_24 AC 58 ms
20,864 KB
testcase_25 AC 59 ms
22,792 KB
testcase_26 AC 59 ms
22,844 KB
testcase_27 AC 59 ms
20,712 KB
testcase_28 AC 60 ms
20,724 KB
testcase_29 AC 59 ms
20,764 KB
testcase_30 AC 59 ms
22,876 KB
testcase_31 AC 58 ms
20,792 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class No637{
    static void Main(string[] args){
        string[] str=Console.ReadLine().Split(' ');
        var sum=0;
        for(int i=0;i<5;++i){
            int num=Int32.Parse(str[i]);
            sum+=((num%15)==0)?8:(num%5==0||num%3==0)?4:(num<10)?1:(num<100)?2:3;
        }
        Console.WriteLine(sum);
    }
}
0