結果
| 問題 |
No.149 碁石の移動
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-02-16 16:46:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 186 bytes |
| コンパイル時間 | 378 ms |
| コンパイル使用メモリ | 57,624 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 02:51:53 |
| 合計ジャッジ時間 | 986 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int aw,ab,bw,bb,c,d; cin>>aw>>ab>>bw>>bb>>c>>d;
int t=max(0, min(c-ab, aw));
cout<<min(bw+t, d)+aw-t<<endl;
}
hogeover30