結果

問題 No.701 ひとりしりとり
ユーザー nebukuro09nebukuro09
提出日時 2018-06-15 22:27:29
言語 D
(dmd 2.106.1)
結果
WA  
実行時間 -
コード長 575 bytes
コンパイル時間 802 ms
コンパイル使用メモリ 99,884 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-03 20:25:08
合計ジャッジ時間 3,822 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, std.bitmanip;

void main() {
    auto N = readln.chomp.to!int;
    auto ans = new dchar[](20);
    ans.fill('a');

    void incl() {
        for (int i = 18; i >= 1; --i) {
            ans[i] += 1;
            if (ans[i] > 'z') {
                ans[i] = 'a';
            } else {
                break;
            }
        }
    }

    while (N--) {
        ans.writeln;
        incl;
    }
}
0