結果
問題 | No.648 お や す み |
ユーザー |
![]() |
提出日時 | 2025-03-20 20:18:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 212 ms |
コンパイル使用メモリ | 82,148 KB |
実行使用メモリ | 54,132 KB |
最終ジャッジ日時 | 2025-03-20 20:19:02 |
合計ジャッジ時間 | 5,984 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 84 |
ソースコード
import mathn = int(input())D = 1 + 8 * ns = math.isqrt(D)if s * s == D and s % 2 == 1:k = (s - 1) // 2print("YES")print(k)else:print("NO")