結果
問題 |
No.1991 Secret Garden
|
ユーザー |
![]() |
提出日時 | 2025-03-20 20:44:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 114 bytes |
コンパイル時間 | 250 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 54,196 KB |
最終ジャッジ日時 | 2025-03-20 20:45:07 |
合計ジャッジ時間 | 1,820 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 22 |
ソースコード
import math n = int(input()) m = int((math.sqrt(8 * n + 1) - 1) // 2) result = n - m * (m + 1) // 2 print(result)