牛客(多校4):Finding the Order

在这里插入图片描述
在这里插入图片描述

#include <iostream>
using namespace std;
int main(){
    int a,b,c,d;
    int t;
    cin >> t;
    while(t--){
    scanf("%d%d%d%d",&a,&b,&c,&d);
    if(a-b-c+d<0) cout <<"AB//CD"<<endl;
    else cout <<"AB//DC"<<endl;
    }
    return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_46144237/article/details/107478260