結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
5387takarotta
|
| 提出日時 | 2018-05-04 19:12:59 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 567 bytes |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 107,388 KB |
| 実行使用メモリ | 25,672 KB |
| 最終ジャッジ日時 | 2024-06-28 01:13:44 |
| 合計ジャッジ時間 | 1,261 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 3 |
コンパイルメッセージ
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();
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();
}
}
}
5387takarotta