結果
| 問題 | No.254 文字列の構成 |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-01-10 01:22:54 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 879 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-06-09 18:44:32 |
| 合計ジャッジ時間 | 7,635 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 1 WA * 29 |
ソースコード
N=int(input())
ANS=[]
c=0
while N>0:
for i in range(10**6):
if i*(i+1)//2<=N:
plus=i
else:
break
ANS+=[c]*plus
N-=plus*(plus+1)//2
c+=1
ANS=[chr(ANS[i]+97) for i in range(len(ANS))]
print("".join(ANS))
titia