結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
|
| 提出日時 | 2022-07-11 22:12:17 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 5,000 ms |
| コード長 | 581 bytes |
| コンパイル時間 | 10,612 ms |
| コンパイル使用メモリ | 171,068 KB |
| 実行使用メモリ | 183,208 KB |
| 最終ジャッジ日時 | 2024-06-22 17:05:27 |
| 合計ジャッジ時間 | 11,296 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (91 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());
i++;
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);
}
}
}
}