結果

問題 No.648  お や す み 
ユーザー cande398
提出日時 2018-05-21 19:51:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 15,872 KB
最終ジャッジ日時 2024-06-28 15:32:38
合計ジャッジ時間 12,931 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36 WA * 17 TLE * 2 -- * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

i=1
x=int(input())
count=0
while True:
    count+=i
    if count>x:
        print('NO')
        exit()
    if count==x:
        print('YES',i,sep='\n')
    i+=1
0