結果
| 問題 |
No.648 お や す み
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-09 20:42:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 126 bytes |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 82,436 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-11-28 21:10:49 |
| 合計ジャッジ時間 | 4,598 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 84 |
ソースコード
n = int(input())
s = 2*n
check = int(s**0.5)
if check*(check+1) == s:
print('YES')
print(check)
else:
print('NO')