結果
| 問題 |
No.3236 累乗数大好きbot
|
| コンテスト | |
| ユーザー |
tokugh
|
| 提出日時 | 2025-08-16 18:20:54 |
| 言語 | Julia (2.11.2) |
| 結果 |
AC
|
| 実行時間 | 1,070 ms / 4,000 ms |
| コード長 | 575 bytes |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 7,968 KB |
| 実行使用メモリ | 352,052 KB |
| 最終ジャッジ日時 | 2025-08-16 18:21:32 |
| 合計ジャッジ時間 | 36,613 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 |
ソースコード
toI(s=readline()) = parse(Int,s)
toVI(s=readline()) = parse.(Int,split(s))
rep(f,n) = [f() for _ in 1:n]
@enum YN Yes=1 No=0
function main()
q = toI()
ns = rep(toI,q)
solve(q,ns) .|> println
end
function solve(q,ns)
dict = Dict{Int,Int}()
for x in 2:10^6
y = x
p = 1
while y ≤ 10^12
if !haskey(dict,y)
dict[y] = p
end
y *= x
p += 1
end
end
map(ns) do n
get(dict,n,1)
end
end
@static if endswith(@__FILE__, PROGRAM_FILE)
main()
end
tokugh