結果

問題 No.648  お や す み 
ユーザー tmsausa
提出日時 2018-04-12 09:25:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 81,848 KB
実行使用メモリ 54,360 KB
最終ジャッジ日時 2024-06-26 21:21:14
合計ジャッジ時間 5,335 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 49 WA * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())

i = (-1 + math.sqrt(1 + 8*n)) / 2
if i - math.floor(i) == 0.0:
    print("YES")
    print(i)
else:
    print("NO")
0