結果
| 問題 | No.648 お や す み |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:18:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 95,720 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-07-07 08:43:49 |
| 合計ジャッジ時間 | 8,743 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 84 |
ソースコード
import math
n = int(input())
D = 1 + 8 * n
s = math.isqrt(D)
if s * s == D and s % 2 == 1:
k = (s - 1) // 2
print("YES")
print(k)
else:
print("NO")
lam6er