結果
| 問題 |
No.149 碁石の移動
|
| コンテスト | |
| ユーザー |
kutsutama
|
| 提出日時 | 2019-01-19 15:17:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 212 bytes |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-17 22:22:33 |
| 合計ジャッジ時間 | 1,314 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
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()]
if c > Ab:
sub = c - Ab
Aw -= sub
Bw += sub
Aw += min(Bw, d)
print(Aw)
kutsutama