1 条题解

  • 0
    @ 2026-8-7 14:49:02
    #include<iostream>
    #define int long long
    using namespace std;
    
    signed main(){
        int t;
        cin>>t;
        while(t--){
            int a,b;
            cin>>a>>b;
            int x=min(max(a,b*2),max(a*2,b));
            cout<<x*x<<endl;
        }
    }
    
    • 1

    信息

    ID
    7279
    时间
    2000ms
    内存
    256MiB
    难度
    8
    标签
    递交数
    20
    已通过
    7
    上传者