結果

問題 No.149 碁石の移動
ユーザー matsu7874matsu7874
提出日時 2015-03-21 01:26:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-09-11 09:08:10
合計ジャッジ時間 1,852 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,972 KB
testcase_01 AC 15 ms
7,916 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,812 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 16 ms
7,840 KB
testcase_08 AC 15 ms
7,864 KB
testcase_09 AC 16 ms
7,872 KB
testcase_10 AC 15 ms
7,768 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 16 ms
7,960 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

Aw,Ab = [int(x) for x in input().split()]
Bw,Bb = [int(x) for x in input().split()]
C,D = [int(x) for x in input().split()]
Aw -= max(C-Ab, 0)
Aw += min(Bw,D)
print(Aw)
0