結果
| 問題 |
No.701 ひとりしりとり
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-15 22:28:31 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 623 bytes |
| コンパイル時間 | 812 ms |
| コンパイル使用メモリ | 112,992 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-13 01:14:03 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
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--) {
if (N == 0)
ans[$-1] = 'n';
ans.writeln;
incl;
}
}