QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#617299 | #1958. Grid Triangle | urayaha_yahaura# | WA | 0ms | 3916kb | C++14 | 372b | 2024-10-06 14:47:52 | 2024-10-06 14:47:53 |
Judging History
answer
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll a,b,c,res;
int main(){
scanf("%lld%lld%lld",&a,&b,&c);
if(a>b)
swap(a,b);
if(b>c)
swap(b,c);
if(a>b)
swap(a,b);
b=min(b,a*2);
for(ll i=1;i<=a;++i)
res+=32*max(0ll,a-2*i)+16*max(0ll,b-2*i);
printf("%lld\n",res);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3856kb
input:
1 1 4
output:
0
result:
ok single line: '0'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3916kb
input:
1 1 5
output:
0
result:
ok single line: '0'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
1 2 6
output:
0
result:
ok single line: '0'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
1 2 7
output:
0
result:
ok single line: '0'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
2 2 8
output:
0
result:
ok single line: '0'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
2 3 9
output:
16
result:
ok single line: '16'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 3 10
output:
16
result:
ok single line: '16'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3908kb
input:
2 3 11
output:
16
result:
ok single line: '16'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
3 4 12
output:
64
result:
ok single line: '64'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
3 4 13
output:
64
result:
ok single line: '64'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3908kb
input:
3 4 14
output:
64
result:
ok single line: '64'
Test #12:
score: -100
Wrong Answer
time: 0ms
memory: 3788kb
input:
3 5 15
output:
96
result:
wrong answer 1st lines differ - expected: '80', found: '96'