結果

問題 No.2138 Add Bacon
ユーザー w0mbatw0mbat
提出日時 2022-12-06 18:57:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 82,780 KB
実行使用メモリ 53,596 KB
最終ジャッジ日時 2024-04-21 09:06:53
合計ジャッジ時間 2,903 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
52,228 KB
testcase_01 AC 49 ms
51,932 KB
testcase_02 AC 51 ms
53,132 KB
testcase_03 AC 48 ms
52,184 KB
testcase_04 AC 47 ms
51,868 KB
testcase_05 AC 49 ms
53,040 KB
testcase_06 AC 49 ms
53,292 KB
testcase_07 AC 48 ms
53,184 KB
testcase_08 AC 48 ms
52,568 KB
testcase_09 AC 48 ms
51,880 KB
testcase_10 AC 47 ms
52,944 KB
testcase_11 AC 50 ms
52,112 KB
testcase_12 AC 50 ms
53,156 KB
testcase_13 AC 50 ms
53,396 KB
testcase_14 AC 46 ms
52,716 KB
testcase_15 AC 51 ms
52,636 KB
testcase_16 AC 46 ms
52,136 KB
testcase_17 AC 47 ms
53,028 KB
testcase_18 AC 48 ms
52,444 KB
testcase_19 AC 49 ms
53,136 KB
testcase_20 AC 48 ms
53,596 KB
testcase_21 AC 50 ms
52,436 KB
testcase_22 AC 50 ms
53,244 KB
testcase_23 AC 49 ms
52,096 KB
testcase_24 AC 48 ms
52,228 KB
testcase_25 AC 50 ms
53,348 KB
testcase_26 AC 50 ms
52,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C, D, E = map(int, input().split())
ans = A - B
for c in range(C):
    A += D
    B += E
    ans = max(ans, A - B)
print(ans)
0