結果
問題 |
No.648 お や す み
|
ユーザー |
![]() |
提出日時 | 2024-05-09 17:42:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 494 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-12-16 08:44:07 |
合計ジャッジ時間 | 6,053 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 84 |
ソースコード
def sleep(n): i = 0 j = n while i < j - 1: m = (i + j) // 2 if m * (m + 1) // 2 >= n: j = m else: i = m if j * (j + 1) // 2 == n: print("Yes") print(j) else: print("No") n = int(input()) sleep(n)