結果
問題 |
No.648 お や す み
|
ユーザー |
|
提出日時 | 2021-12-06 19:14:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-07 09:30:20 |
合計ジャッジ時間 | 5,025 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 84 |
ソースコード
from math import sqrt import sys n = int(input()) D = a + 8 * n if int(sqrt(D)) **2 == D: if (int(sqrt(D)) - 1) % 2 == 0: print('YES') print((int(sqrt(D))-1) // 2) exit() print('NO')