結果

問題 No.2110 012 Matching
ユーザー RustiebeatsRustiebeats
提出日時 2022-10-28 22:00:40
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 726 bytes
コンパイル時間 1,696 ms
コンパイル使用メモリ 162,628 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-20 04:57:25
合計ジャッジ時間 3,308 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _D321EBUG
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const long double pi = acos(-1.0);
const int INF = 1987654321;
// 


int main(){
#ifdef _DEBUG
    freopen ("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif  
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    
        
    int T; cin >> T;
    while(T--){
        unsigned long long a, b, c; cin >> a >> b >> c;
        // cout << a << " " << b<<  " " << c << endl;
        unsigned long long ans = 0;
        ans += 2*(b/2);
        ans += 2 * min(a, c);
        cout << ans << endl;
    }
    
    return 0;
}   
0