結果

問題 No.648  お や す み 
ユーザー daleksprinter
提出日時 2018-08-10 06:07:11
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 6,784 KB
最終ジャッジ日時 2024-09-23 05:26:43
合計ジャッジ時間 3,083 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 79 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n = int(input())

a = round(math.sqrt(n*8+1))
if a**2 == n*8+1:
	print 'YES'
	print int((a-1)/2)

else :
	print 'NO'
0