結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
|
| 提出日時 | 2022-11-08 20:02:28 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 453 bytes |
| コンパイル時間 | 2,537 ms |
| コンパイル使用メモリ | 103,296 KB |
| 実行使用メモリ | 18,048 KB |
| 最終ジャッジ日時 | 2024-07-22 03:55:10 |
| 合計ジャッジ時間 | 3,046 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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);
}
}
}