結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
|
| 提出日時 | 2016-10-20 14:12:15 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 429 bytes |
| コンパイル時間 | 798 ms |
| コンパイル使用メモリ | 103,168 KB |
| 実行使用メモリ | 17,792 KB |
| 最終ジャッジ日時 | 2024-11-23 14:42:42 |
| 合計ジャッジ時間 | 1,186 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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()
{
int N = Convert.ToInt32(Console.ReadLine());
if (N % 3 == 0 && N % 5 != 0)
{
Console.WriteLine("Fizz");
}
else if (N % 5 == 0 && N % 3 != 0)
{
Console.WriteLine("Buzz");
}
else if (N % 3 == 0 && N % 5 == 0)
{
Console.WriteLine("FizzBuzz");
}
else
{
Console.WriteLine(N.ToString());
}
}
}