QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#763552 | #9750. 拼图 | tianxiawoyou# | WA | 0ms | 3640kb | C++14 | 431b | 2024-11-19 20:56:16 | 2024-11-19 20:56:20 |
Judging History
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'