結果

問題 No.149 碁石の移動
ユーザー あかりきあかりき
提出日時 2021-02-12 11:54:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 71,564 KB
最終ジャッジ日時 2023-09-26 11:29:08
合計ジャッジ時間 2,684 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,288 KB
testcase_01 AC 75 ms
71,488 KB
testcase_02 AC 77 ms
71,388 KB
testcase_03 AC 78 ms
71,372 KB
testcase_04 AC 77 ms
71,400 KB
testcase_05 AC 79 ms
71,432 KB
testcase_06 AC 76 ms
71,244 KB
testcase_07 AC 76 ms
71,296 KB
testcase_08 AC 74 ms
71,364 KB
testcase_09 AC 77 ms
71,404 KB
testcase_10 AC 76 ms
71,236 KB
testcase_11 AC 77 ms
71,240 KB
testcase_12 AC 78 ms
71,364 KB
testcase_13 AC 77 ms
71,144 KB
testcase_14 AC 78 ms
71,412 KB
testcase_15 AC 75 ms
71,432 KB
testcase_16 AC 78 ms
71,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a1,a2=map(int,input().split())
b1,b2=map(int,input().split())
c,d=map(int,input().split())
x1=max(c-a2,0);x2=min(a2,c)
a1-=x1;a2-=x2
b1+=x1;b2+=x2
print(a1+min(d,b1))
0