結果

問題 No.593 4進FizzBuzz
ユーザー maimai
提出日時 2017-08-03 07:50:37
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 552 bytes
コンパイル時間 977 ms
コンパイル使用メモリ 112,208 KB
実行使用メモリ 66,404 KB
最終ジャッジ日時 2024-10-14 13:47:23
合計ジャッジ時間 5,807 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
31,132 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 30 ms
22,068 KB
testcase_04 AC 30 ms
26,356 KB
testcase_05 AC 30 ms
26,340 KB
testcase_06 WA -
testcase_07 AC 30 ms
26,220 KB
testcase_08 WA -
testcase_09 AC 30 ms
24,296 KB
testcase_10 WA -
testcase_11 AC 30 ms
24,188 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