結果

問題 No.149 碁石の移動
ユーザー brthyyjpbrthyyjp
提出日時 2022-03-20 01:05:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 82,412 KB
実行使用メモリ 53,508 KB
最終ジャッジ日時 2024-04-15 15:28:57
合計ジャッジ時間 1,625 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,940 KB
testcase_01 AC 40 ms
52,220 KB
testcase_02 AC 39 ms
52,500 KB
testcase_03 AC 39 ms
52,208 KB
testcase_04 AC 41 ms
52,088 KB
testcase_05 AC 40 ms
52,644 KB
testcase_06 AC 40 ms
52,352 KB
testcase_07 AC 40 ms
53,508 KB
testcase_08 AC 41 ms
52,260 KB
testcase_09 AC 43 ms
51,824 KB
testcase_10 AC 43 ms
52,040 KB
testcase_11 AC 41 ms
52,820 KB
testcase_12 AC 40 ms
52,608 KB
testcase_13 AC 40 ms
53,064 KB
testcase_14 AC 40 ms
52,112 KB
testcase_15 AC 40 ms
52,068 KB
testcase_16 AC 39 ms
53,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

aw, ab = map(int, input().split())
bw, bb = map(int, input().split())
c, d = map(int, input().split())

x = min(ab, c)
aw -= c-x
ab -= x
bw += c-x
bb += x
y = min(bw, d)
aw += y
print(aw)
0