結果
問題 | No.648 お や す み |
ユーザー |
👑 |
提出日時 | 2022-01-19 21:04:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 159 bytes |
コンパイル時間 | 216 ms |
コンパイル使用メモリ | 82,092 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-11-23 14:03:59 |
合計ジャッジ時間 | 5,758 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 84 |
ソースコード
n = int(input()) x = int((2 * n) ** 0.5) while x * (x + 1) // 2 < n: x += 1 if x * (x + 1) // 2 == n: print("YES") print(x) else: print("NO")