結果
| 問題 |
No.149 碁石の移動
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-02-09 20:10:32 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 270 bytes |
| コンパイル時間 | 2,099 ms |
| コンパイル使用メモリ | 76,288 KB |
| 実行使用メモリ | 75,520 KB |
| 最終ジャッジ日時 | 2024-12-24 02:42:59 |
| 合計ジャッジ時間 | 4,402 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
# -*- coding: utf-8 -*- Aw, Ab = map(int, raw_input().split()) Bw, Bb = map(int, raw_input().split()) C, D = map(int, raw_input().split()) # Aに残ってる最大の白 W = Aw + min(0, Ab - C) # Bに移動する白分追加 Bw += -min(0, Ab - C) print W + min(D, Bw)