結果

問題 No.149 碁石の移動
ユーザー rin204
提出日時 2020-08-24 17:43:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-06 10:30:05
合計ジャッジ時間 1,555 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 5 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

aw, ab = map(int, input().split())
bw, ab = map(int, input().split())
c, d = map(int, input().split())
ans = aw
cnt = max(0, c - ab)
ans -= cnt
bw += cnt
ans += min(bw, d)
print(ans)
0