結果
| 問題 | No.701 ひとりしりとり |
| コンテスト | |
| ユーザー |
anta
|
| 提出日時 | 2018-06-15 22:23:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 302 bytes |
| コンパイル時間 | 1,498 ms |
| コンパイル使用メモリ | 167,840 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 14:59:17 |
| 合計ジャッジ時間 | 2,281 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main() {
int n;
while (~scanf("%d", &n)) {
mt19937 re;
for (int i = 0; i < n; ++ i) {
string s;
s += 'a';
for (int k = 0; k < 18; ++ k) {
s += char('a' + re() % 26);
}
s += i == n - 1 ? 'n' : 'a';
puts(s.c_str());
}
}
}
anta