結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
e7a894
|
| 提出日時 | 2018-05-08 14:17:11 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 396 bytes |
| コンパイル時間 | 849 ms |
| コンパイル使用メモリ | 110,212 KB |
| 実行使用メモリ | 18,944 KB |
| 最終ジャッジ日時 | 2024-06-28 02:26:59 |
| 合計ジャッジ時間 | 1,449 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
using System.Linq;
using System.Text;
class Program
{
public static void Main(string[] args)
{
Console.Write(
Enumerable.Range(1, int.Parse(Console.ReadLine()))
.Select(x => x % 15 == 0 ? "FizzBuzz" : x % 3 == 0 ? "Fizz" : x % 5 == 0 ? "Buzz" : $"{x}")
.Aggregate(new StringBuilder(), (a, b) => a.AppendLine(b)));
}
}
e7a894