Submission #69112726


Source Code Expand

#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(0);cout.tie(0);
	int T;
	cin>>T;
	while(T--){
		int a,b,c;
		cin>>a>>b>>c;
		cout<<min({a,c,(a+b+c)/3})<<'\n';
	}
	return 0;
}

Submission Info

Submission Time
Task C - AtCoder AAC Contest
User a_computers_xh
Language C++ 20 (gcc 12.2)
Score 300
Code Size 257 Byte
Status AC
Exec Time 39 ms
Memory 3528 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 1
AC × 14
Set Name Test Cases
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3440 KiB
01_random_01.txt AC 38 ms 3444 KiB
01_random_02.txt AC 38 ms 3480 KiB
01_random_03.txt AC 38 ms 3472 KiB
01_random_04.txt AC 39 ms 3388 KiB
01_random_05.txt AC 39 ms 3472 KiB
01_random_06.txt AC 38 ms 3392 KiB
01_random_07.txt AC 39 ms 3420 KiB
01_random_08.txt AC 39 ms 3460 KiB
01_random_09.txt AC 39 ms 3464 KiB
01_random_10.txt AC 39 ms 3460 KiB
01_random_11.txt AC 38 ms 3472 KiB
01_random_12.txt AC 39 ms 3464 KiB
01_random_13.txt AC 30 ms 3528 KiB