結果

問題 No.2110 012 Matching
ユーザー okkuukenkenokkuukenken
提出日時 2022-12-19 00:15:02
言語 C++23(draft)
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 318 ms / 2,000 ms
コード長 536 bytes
コンパイル時間 7,658 ms
コンパイル使用メモリ 346,704 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-11 09:20:42
合計ジャッジ時間 12,648 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long long ull;
constexpr int dx[]={1,0,0,-1},dy[]={0,1,-1,0};
constexpr int Dx[]={1,1,0,-1,-1,-1,0,1},Dy[]={0,1,1,1,0,-1,-1,-1};
constexpr int mod=998244353,Mod=1e9+7,inf=Mod;
constexpr ll linf=(ll)inf*inf;
//*
#include<atcoder/all>
using namespace atcoder;
//*/
int main(){
	int t;
	ll a,b,c;
	cin>>t;
	while(cin>>a>>b>>c)
		cout<<(c<a?b+c*2:a*2+b/2*2+(c-a)/2)<<endl;
}
0