結果

問題 No.2110 012 Matching
ユーザー ぷら
提出日時 2022-10-28 23:27:27
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 1,568 ms
コンパイル使用メモリ 193,128 KB
最終ジャッジ日時 2025-02-08 15:15:24
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int t;
    cin >> t;
    while(t--) {
        long long a,b,c;
        cin >> a >> b >> c;
        long long ans = 0;
        long long d = min(a,c);
        ans += d*2;
        a -= d;
        c -= d;
        ans += b/2*2;
        ans += c/2;
        cout << ans << endl;
    }
}
0