結果
| 問題 | No.3505 Sum of Prod of Root |
| コンテスト | |
| ユーザー |
Palladium
|
| 提出日時 | 2026-04-18 11:38:36 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 413 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 28,384 KB |
| 最終ジャッジ日時 | 2026-04-18 11:39:01 |
| 合計ジャッジ時間 | 7,169 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 1 |
| other | TLE * 1 -- * 12 |
ソースコード
from math import floor, pow
n = int(input())
out = 0
for i in range(1, n+1):
tmp = 1
for k in range(1, i):
tmp2 = floor(pow(i, 1/k))
if tmp2 == 1:
break
else:
tmp *= tmp2
out += tmp
print (out % 998244353)
Palladium