結果
| 問題 | 
                            No.1991 Secret Garden
                             | 
                    
| コンテスト | |
| ユーザー | 
                             gew1fw
                         | 
                    
| 提出日時 | 2025-06-12 14:51:13 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 94 bytes | 
| コンパイル時間 | 217 ms | 
| コンパイル使用メモリ | 82,700 KB | 
| 実行使用メモリ | 53,940 KB | 
| 最終ジャッジ日時 | 2025-06-12 14:54:40 | 
| 合計ジャッジ時間 | 1,811 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | WA * 22 | 
ソースコード
import math N = int(input()) k = (math.isqrt(8 * N + 1) - 1) // 2 print(N - k * (k + 1) // 2)
            
gew1fw