結果
| 問題 | No.149 碁石の移動 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-14 16:25:02 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 73 ms / 2,000 ms |
| コード長 | 337 bytes |
| 記録 | |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 77,732 KB |
| 最終ジャッジ日時 | 2025-12-03 21:11:35 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#!/usr/bin/python
# -*- coding: utf-8 -*-
Aw, Ab = map(int, raw_input().split())
Bw, Bb = map(int, raw_input().split())
C , D = map(int, raw_input().split())
if Ab - C >= 0:
Bb += C
else:
Aw -= C - Ab
Bw += C -Ab
Bb += Ab
Ab = 0
if Bw - D >= 0:
print Aw + D
else:
print Aw + Bw