結果

問題 No.2746 Bicolor Pyramid
ユーザー 👑 rin204rin204
提出日時 2024-04-20 14:28:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 200 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 54,040 KB
最終ジャッジ日時 2024-04-20 14:28:28
合計ジャッジ時間 2,369 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 33 ms
51,872 KB
testcase_05 AC 34 ms
52,740 KB
testcase_06 AC 33 ms
52,984 KB
testcase_07 AC 33 ms
52,200 KB
testcase_08 AC 34 ms
52,464 KB
testcase_09 AC 35 ms
53,700 KB
testcase_10 AC 34 ms
52,424 KB
testcase_11 AC 34 ms
52,932 KB
testcase_12 AC 34 ms
53,504 KB
testcase_13 AC 34 ms
53,752 KB
testcase_14 WA -
testcase_15 AC 35 ms
53,572 KB
testcase_16 WA -
testcase_17 AC 34 ms
52,836 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 31 ms
52,912 KB
testcase_27 AC 32 ms
54,028 KB
testcase_28 AC 34 ms
53,236 KB
testcase_29 AC 35 ms
53,036 KB
testcase_30 AC 34 ms
52,500 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 32 ms
53,908 KB
testcase_34 WA -
testcase_35 AC 33 ms
52,888 KB
testcase_36 AC 32 ms
52,576 KB
testcase_37 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

r, b = map(int, input().split())
t = r + b


l_ = 0
r_ = t + 1
while r_ - l_ > 1:
    m = (l_ + r_) // 2
    if m * (m + 1) * (2 * m + 1) // 6 <= t:
        l_ = m
    else:
        r_ = m

print(l_)
0