結果

問題 No.648  お や す み 
ユーザー syunsuke
提出日時 2018-06-20 23:59:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 155 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-30 17:30:12
合計ジャッジ時間 5,050 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 79 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())

a=(-1+(1+8*n)**0.5)/2
#print(int(int(a)*int(1+a)/2))
if int(int(a)*int(1+a)/2)==n:
    print("YES")
    print(int(a))
else:
    print("NO")
0