結果
問題 | No.1273 はじめのζ関数 |
ユーザー |
|
提出日時 | 2022-11-16 15:36:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 82,004 KB |
実行使用メモリ | 67,008 KB |
最終ジャッジ日時 | 2024-09-17 11:46:04 |
合計ジャッジ時間 | 2,896 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 40 |
ソースコード
import mathx=int(input())if x==2:print(1000000)exit(0)ans=0for i in range(2,1000000000000):if pow(i,x-1)*(i-1)>10000000000000000:breakA=pow(i,x-1)*(i-1)ans+=1000000/Aprint(math.floor(ans))