結果
| 問題 | No.1666 累乗数 |
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2021-09-03 14:35:07 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 350 ms / 2,000 ms |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 85,900 KB |
| 実行使用メモリ | 82,456 KB |
| 最終ジャッジ日時 | 2026-05-25 22:04:24 |
| 合計ジャッジ時間 | 7,735 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
for _ in range(int(input())):
k,n,o=int(input()),0,2**63
while o-n>1:
m,c=(o+n)//2,[0]*60
for i in range(59,1,-1):
N,O=int(2**(63/i))+1,0
while N-O>1:
M=(N+O)//2
if M**i<=m:O=M
else:N=M
c[i]=O-1-sum(c[::i])
if sum(c)+1>=k:o=m
else:n=m
print(o)
とりゐ