結果
| 問題 | No.9002 FizzBuzz(テスト用) |
| ユーザー |
|
| 提出日時 | 2015-12-14 18:57:21 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 5,000 ms |
| コード長 | 408 bytes |
| 記録 | |
| コンパイル時間 | 2,163 ms |
| コンパイル使用メモリ | 104,192 KB |
| 実行使用メモリ | 18,304 KB |
| 最終ジャッジ日時 | 2026-04-04 19:49:55 |
| 合計ジャッジ時間 | 2,634 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace Program
{
class MainClass
{
public static void Main (string[] args)
{
int N = int.Parse (Console.ReadLine ());
for (int i = 1; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
Console.Write ((i % 3 == 0) ? "Fizz" : "");
Console.Write ((i % 5 == 0) ? "Buzz" : "");
} else {
Console.Write (i.ToString ());
}
Console.WriteLine ();
}
}
}
}