結果
| 問題 | 
                            No.1271 初めての級数
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kotatsuinu5
                         | 
                    
| 提出日時 | 2020-10-30 22:02:34 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 206 bytes | 
| コンパイル時間 | 96 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-22 00:39:17 | 
| 合計ジャッジ時間 | 1,026 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 WA * 1 | 
ソースコード
N=int(input())
if N==0:
    print(2.0)
else:
    mul=1
    
    for i in range(N):
        mul*=(i+1)
        
    goukei=0
    for i in range(N):
        goukei+=mul/(i+1)
    
    
    print(goukei/mul/N)
            
            
            
        
            
kotatsuinu5