結果
問題 |
No.648 お や す み
|
ユーザー |
|
提出日時 | 2023-06-16 19:31:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 135 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 82,028 KB |
実行使用メモリ | 53,644 KB |
最終ジャッジ日時 | 2024-06-24 11:28:11 |
合計ジャッジ時間 | 6,012 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 84 |
ソースコード
N = int(input()) T = int((N * 2) ** 0.5) * (int((N * 2) ** 0.5) + 1) // 2 print("YES\n" + str(int((N * 2) ** 0.5)) if T == N else "NO")