結果

問題 No.149 碁石の移動
ユーザー JunOnumaJunOnuma
提出日時 2017-06-08 15:17:46
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 7,136 KB
実行使用メモリ 6,476 KB
最終ジャッジ日時 2023-10-23 19:45:31
合計ジャッジ時間 1,037 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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:
    aw -= c - ab
if d > bw:
    aw += bw
else:
    aw += d
print aw
0