結果
| 問題 | 
                            No.1273 はじめのζ関数
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kotatsuinu5
                         | 
                    
| 提出日時 | 2020-10-30 22:56:29 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 264 bytes | 
| コンパイル時間 | 161 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-07-22 02:36:36 | 
| 合計ジャッジ時間 | 4,057 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 39 WA * 1 | 
ソースコード
import math
x=int(input())
ans=0
for j in range(x,3000):
    tmp=0
    for i in range(1,1000000):
        tmp+=1/(i**j)
        if i**j>10**17:
            break
    tmp=(tmp-1)*(10**6)
    ans+=tmp
if x==2:
    print(999999)    
else:
    print(math.floor(ans))
            
            
            
        
            
kotatsuinu5