結果
| 問題 |
No.254 文字列の構成
|
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2023-07-14 05:19:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 245 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-15 13:32:04 |
| 合計ジャッジ時間 | 5,471 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 19 |
ソースコード
import sys
readline=sys.stdin.readline
N=int(readline())
alp=[chr(i) for i in range(97,97+26)]
ans=[]
for n in range(33000,0,-1):
if n*n<=N:
a,b=alp.pop(),alp.pop()
ans.append(a+(b+a)*(n-1))
N-=n*n
print(*ans,sep="")
vwxyz