結果
| 問題 |
No.254 文字列の構成
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-01-10 01:22:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 261 bytes |
| コンパイル時間 | 1,082 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2025-01-10 01:23:05 |
| 合計ジャッジ時間 | 7,999 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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