結果

問題 No.149 碁石の移動
ユーザー TawaraTawara
提出日時 2015-09-12 19:39:23
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2024-12-24 03:12:48
合計ジャッジ時間 1,130 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())
t = max(0,C-Ab)
print (Aw-t)+min(t+Bw,D)
0