結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー sysnote8mainsysnote8main
提出日時 2022-11-08 20:02:28
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 453 bytes
コンパイル時間 1,675 ms
コンパイル使用メモリ 63,140 KB
実行使用メモリ 24,980 KB
最終ジャッジ日時 2023-09-29 09:17:53
合計ジャッジ時間 2,501 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
public class Program
{
    static void Main()
    {
        string s = Console.ReadLine();
        string[] t = s.Split(' ');
        int n = int.Parse(t[0]);
        string output;
        for(int i=0;i<n;i++) {
            output = "";
            if(i%3==0) {
                output = "Fizz";
            }
            if(i%5==0) {
                output += "Buzz";
            }
            Console.WriteLine(output);
        }
    }
}
0