QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#763552#9750. 拼图tianxiawoyou#WA 0ms3640kbC++14431b2024-11-19 20:56:162024-11-19 20:56:20

Judging History

This is the latest submission verdict.

  • [2024-11-19 20:56:20]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3640kb
  • [2024-11-19 20:56:16]
  • 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);
        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: 3640kb

input:

2
4 0 0 0
4 4 4 4

output:

3
16

result:

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