結果

問題 No.648  お や す み 
ユーザー tails1434
提出日時 2020-01-28 07:35:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 678 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 56,960 KB
最終ジャッジ日時 2024-09-15 03:17:54
合計ジャッジ時間 6,911 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 69 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = int(input())
    cnt = 0
    for i in range(10**6):
        cnt += i
        if cnt == n:
            print('YES')
            print(i)
            exit()

    print('NO')



if __name__ == "__main__":
    main()
0