結果
| 問題 |
No.149 碁石の移動
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-02-16 16:45:17 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 178 bytes |
| コンパイル時間 | 450 ms |
| コンパイル使用メモリ | 56,672 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 20:40:55 |
| 合計ジャッジ時間 | 1,037 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 WA * 2 |
ソースコード
#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=min(c-ab, aw);
cout<<min(bw+t, d)+aw-t<<endl;
}
hogeover30