結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2022-11-16 11:15:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 214 bytes |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-09-17 08:24:08 |
| 合計ジャッジ時間 | 2,583 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 39 WA * 1 |
ソースコード
import math
x=int(input())
if x==2:
print(999999)
exit(0)
ans=0
for i in range(2,1000000000000):
if pow(i,x-1)*(i-1)>10000000000000000:
break
A=pow(i,x-1)*(i-1)
ans+=1000000/A
print(math.floor(ans))
cureskol