結果

問題 No.701 ひとりしりとり
ユーザー iwkjoseciwkjosec
提出日時 2018-06-16 16:28:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 342 ms / 2,000 ms
コード長 467 bytes
コンパイル時間 1,909 ms
コンパイル使用メモリ 106,272 KB
実行使用メモリ 26,832 KB
最終ジャッジ日時 2023-09-13 06:07:00
合計ジャッジ時間 4,058 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,892 KB
testcase_01 AC 52 ms
22,788 KB
testcase_02 AC 53 ms
22,784 KB
testcase_03 AC 53 ms
20,724 KB
testcase_04 AC 53 ms
20,684 KB
testcase_05 AC 53 ms
22,724 KB
testcase_06 AC 53 ms
20,636 KB
testcase_07 AC 53 ms
20,708 KB
testcase_08 AC 53 ms
20,684 KB
testcase_09 AC 56 ms
20,712 KB
testcase_10 AC 80 ms
22,736 KB
testcase_11 AC 342 ms
26,832 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;

class Program
{
    static void Main()
    {
        var n = int.Parse(ReadLine());
        for (int i = 0; i < n - 1; i++)
        {
            var d = "";
            for (int j = 0; j < 18; j++)
            {
                if ((i & (1 << j)) != 0) d += (char)('a' + j);
            }
            WriteLine("a" + d + "a");
        }
        WriteLine("an");
    }
}
0