QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#763557#9750. 拼图tianxiawoyou#WA 0ms3584kbC++14457b2024-11-19 20:58:072024-11-19 20:58:08

Judging History

This is the latest submission verdict.

  • [2024-11-19 20:58:08]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3584kb
  • [2024-11-19 20:58:07]
  • Submitted

answer

#include<bits/stdc++.h>
#define INF 0x3f3f3f3f
using namespace std;
const int N=200005;
void solve(){
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    if(a<=3){puts("0");return;}
    b=min(b,c);int as=0;
    for(int i=1;i<=1000;++i){
        int j=min(b-i,d/i);
        if(j<0)continue;
        as=max(as,(i+2)*(j+2));
    }cout<<as<<"\n";
}
int main(){
    // freopen("1.in","r",stdin);
    int t;cin>>t;
    while(t--)solve();
    return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3584kb

input:

2
4 0 0 0
4 4 4 4

output:

0
16

result:

wrong answer 1st lines differ - expected: '4', found: '0'