結果

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

ソースコード

diff #

import math
n = int(input())


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

else :
	print 'NO'
0