結果

問題 No.648  お や す み 
ユーザー YutaroYamanaka
提出日時 2018-03-02 23:09:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 242 bytes
コンパイル時間 521 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,696 KB
最終ジャッジ日時 2024-06-22 06:08:02
合計ジャッジ時間 3,891 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 TLE * 1 -- * 82
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
count = 0
i = 1
if n < 2 * 10**18:
    while True:
        count += i
        if count == n:
            print('YES')
            print(i)
            break
        else:
            i += 1
else:
    print('NO')
        
    
0