結果

問題 No.1446 ハンバーグと納豆ごはん
ユーザー LithopsLithops
提出日時 2021-03-18 23:34:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 82,344 KB
実行使用メモリ 53,960 KB
最終ジャッジ日時 2024-04-28 13:39:45
合計ジャッジ時間 2,327 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,680 KB
testcase_01 AC 36 ms
52,864 KB
testcase_02 AC 39 ms
53,960 KB
testcase_03 AC 34 ms
52,564 KB
testcase_04 AC 37 ms
52,456 KB
testcase_05 AC 34 ms
52,060 KB
testcase_06 AC 35 ms
52,608 KB
testcase_07 AC 34 ms
52,056 KB
testcase_08 AC 35 ms
51,700 KB
testcase_09 AC 34 ms
52,560 KB
testcase_10 AC 35 ms
52,612 KB
testcase_11 AC 37 ms
52,012 KB
testcase_12 AC 36 ms
52,500 KB
testcase_13 AC 34 ms
52,080 KB
testcase_14 AC 35 ms
51,624 KB
testcase_15 AC 35 ms
52,028 KB
testcase_16 AC 34 ms
52,568 KB
testcase_17 AC 33 ms
52,356 KB
testcase_18 AC 33 ms
52,264 KB
testcase_19 AC 32 ms
52,840 KB
testcase_20 AC 36 ms
52,556 KB
testcase_21 AC 36 ms
52,820 KB
testcase_22 AC 36 ms
52,688 KB
testcase_23 AC 33 ms
52,244 KB
testcase_24 AC 35 ms
52,152 KB
testcase_25 AC 35 ms
52,820 KB
testcase_26 AC 36 ms
52,432 KB
testcase_27 AC 35 ms
52,892 KB
testcase_28 AC 34 ms
53,116 KB
testcase_29 AC 35 ms
52,524 KB
testcase_30 AC 34 ms
52,916 KB
testcase_31 AC 36 ms
53,648 KB
testcase_32 AC 36 ms
53,032 KB
testcase_33 AC 35 ms
52,700 KB
testcase_34 AC 36 ms
53,380 KB
testcase_35 AC 36 ms
52,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,N,M=map(int,input().split())
if A<1 or A>10**18 or B<1 or B>10**18 or N<1 or N>10**18 or M<1 or M>10**18:
    print("制約を満たしていません...")
    exit()
if A>B:
  print(B+(A-B)//(N+1))
else:
  print(A+(B-A)//(M+1))
0