結果
| 問題 | No.701 ひとりしりとり |
| コンテスト | |
| ユーザー |
nadare
|
| 提出日時 | 2018-06-15 22:56:17 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 185 ms / 2,000 ms |
| コード長 | 359 bytes |
| 記録 | |
| コンパイル時間 | 407 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,448 KB |
| 最終ジャッジ日時 | 2026-03-20 18:37:40 |
| 合計ジャッジ時間 | 2,379 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
# -*- coding: utf-8 -*-
from itertools import combinations_with_replacement
from string import ascii_lowercase
def inpl(): return map(int, input().split())
N = int(input())
i = 0
for x in combinations_with_replacement(ascii_lowercase, 18):
i += 1
if i == N:
print("a{}n".format("".join(x)))
break
print("a{}a".format("".join(x)))
nadare