結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
|
| 提出日時 | 2022-07-11 21:59:37 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 566 bytes |
| コンパイル時間 | 15,232 ms |
| コンパイル使用メモリ | 165,128 KB |
| 実行使用メモリ | 182,304 KB |
| 最終ジャッジ日時 | 2024-06-22 16:39:05 |
| 合計ジャッジ時間 | 15,317 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (97 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
class Program
{
static void Main()
{
var i = int.Parse(Console.ReadLine());
for(int x = 1; x < i; x++ )
{
if (x % 15 == 0)
{
Console.WriteLine("FizzBuzz");
}
else if (x % 3 == 0)
{
Console.WriteLine("Fizz");
}
else if (x % 5 == 0)
{
Console.WriteLine("Buzz");
}
else
{
Console.WriteLine(x);
}
}
}
}