結果

問題 No.149 碁石の移動
ユーザー f843nmfwisfeuw
提出日時 2020-09-15 19:35:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 462 bytes
コンパイル時間 870 ms
コンパイル使用メモリ 93,176 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-22 01:53:43
合計ジャッジ時間 1,336 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 3 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <iterator>
#include <set>
#include <queue>
#include <bitset>
#include <cassert>

using namespace std;

int main() {

    int Aw, Ab;
    cin >> Aw >> Ab;
    int Bw, Bb;
    cin >> Bw >> Bb;
    int C, D;
    cin >> C >> D;

    cout << min(D, Bw + min(Aw, C)) << endl;

    return 0;

}
0