結果

問題 No.593 4進FizzBuzz
ユーザー maimai
提出日時 2017-08-03 07:50:37
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 552 bytes
コンパイル時間 2,661 ms
コンパイル使用メモリ 102,912 KB
実行使用メモリ 58,856 KB
最終ジャッジ日時 2024-04-22 14:41:50
合計ジャッジ時間 7,361 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
23,552 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 24 ms
18,048 KB
testcase_04 AC 24 ms
18,176 KB
testcase_05 AC 24 ms
17,792 KB
testcase_06 WA -
testcase_07 AC 24 ms
18,176 KB
testcase_08 WA -
testcase_09 AC 24 ms
17,792 KB
testcase_10 WA -
testcase_11 AC 25 ms
17,920 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Numerics;

public class prog{
    public static void Main(){
        string line = Console.ReadLine();
        
        BigInteger num = BigInteger.Parse(line);
        
        
        bool div5 = (num) % 5 == 0;
        bool div3 = (num) % 3 == 0;
        
        if (div5 && div3){
            Console.WriteLine("FizzBuzz");
        }else if (div5){
            Console.WriteLine("Buzz");
        }else if (div3){
            Console.WriteLine("Fizz");
        }else{
            Console.WriteLine(line);
        }
	}
}
0