結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー 5387takarotta5387takarotta
提出日時 2018-05-04 19:12:59
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 567 bytes
コンパイル時間 2,457 ms
コンパイル使用メモリ 103,900 KB
実行使用メモリ 24,868 KB
最終ジャッジ日時 2023-09-10 09:46:29
合計ジャッジ時間 2,989 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,808 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
public class Program
{
    static void Main()
    {
        string s = Console.ReadLine();
        int a = int.Parse(s);
        for (int i = 1; i <= a; i++)
        {
            if ((i % 3) == 0 && (i % 5) == 0)
            {
                Console.Write("FizzBazz");
            }else if ((i % 3) == 0)
            {
                Console.Write("Fizz");
            }else if ((i % 5) == 0){
                Console.Write("Bazz");
            }else{
                Console.Write(i);
            }
            Console.WriteLine();
        }
    }
}
0