結果

問題 No.648  お や す み 
ユーザー ys
提出日時 2018-02-09 22:48:12
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,444 KB
最終ジャッジ日時 2024-10-08 16:59:36
合計ジャッジ時間 13,551 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 39 TLE * 2 -- * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
t, k = 0, 0
while k < n:
    k = t * (t + 1) // 2
    t += 1
if t >= 100000:
    print("NO")
else:
    print("YES")
    print(t - 1)
0