結果

問題 No.149 碁石の移動
ユーザー nebukuro09
提出日時 2016-09-08 10:38:45
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2024-12-24 03:19:59
合計ジャッジ時間 837 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if c > ab:
    c -= ab
    ab = 0
    aw -= c
    bw += c
print aw + min(d, bw)
0