提出 #69107495


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,a,b) for(ll i = (a); i < (ll)(b); i++)
#define all(x) (x).begin(), (x).end()
#define fore(x, a) for(auto &x : a)

void yes_no(bool condition) {
    if (condition) {
        cout << "Yes\n";
    } else {
        cout << "No\n";
    }
}
template<typename T>
long long sz(const T& x) {
    return (long long)x.size();
}

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    
    ll t;cin >> t;
    while(t--){
        ll a,b,c;cin >> a>>b>>c;
        cout << min(min(a,c),(a+b+c)/3)<<"\n";
    }
}

提出情報

提出日時
問題 C - AtCoder AAC Contest
ユーザ makijin
言語 C++ 23 (gcc 12.2)
得点 300
コード長 620 Byte
結果 AC
実行時間 41 ms
メモリ 3536 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 300 / 300
結果
AC × 1
AC × 14
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 1 ms 3392 KiB
01_random_01.txt AC 39 ms 3480 KiB
01_random_02.txt AC 39 ms 3472 KiB
01_random_03.txt AC 41 ms 3472 KiB
01_random_04.txt AC 40 ms 3424 KiB
01_random_05.txt AC 39 ms 3536 KiB
01_random_06.txt AC 40 ms 3400 KiB
01_random_07.txt AC 39 ms 3480 KiB
01_random_08.txt AC 40 ms 3484 KiB
01_random_09.txt AC 39 ms 3428 KiB
01_random_10.txt AC 40 ms 3420 KiB
01_random_11.txt AC 40 ms 3396 KiB
01_random_12.txt AC 39 ms 3476 KiB
01_random_13.txt AC 31 ms 3532 KiB