QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#617316#1958. Grid Triangleurayaha_yahaura#WA 0ms3916kbC++14374b2024-10-06 14:53:392024-10-06 14:53:40

Judging History

你现在查看的是最新测评结果

  • [2024-10-06 14:53:40]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3916kb
  • [2024-10-06 14:53:39]
  • 提交

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-1);
    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: 3784kb

input:

1 1 4

output:

0

result:

ok single line: '0'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3848kb

input:

1 1 5

output:

0

result:

ok single line: '0'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

1 2 6

output:

0

result:

ok single line: '0'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3848kb

input:

1 2 7

output:

0

result:

ok single line: '0'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

2 2 8

output:

0

result:

ok single line: '0'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3908kb

input:

2 3 9

output:

16

result:

ok single line: '16'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

2 3 10

output:

16

result:

ok single line: '16'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3848kb

input:

2 3 11

output:

16

result:

ok single line: '16'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

3 4 12

output:

64

result:

ok single line: '64'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3908kb

input:

3 4 13

output:

64

result:

ok single line: '64'

Test #11:

score: 0
Accepted
time: 0ms
memory: 3916kb

input:

3 4 14

output:

64

result:

ok single line: '64'

Test #12:

score: -100
Wrong Answer
time: 0ms
memory: 3736kb

input:

3 5 15

output:

96

result:

wrong answer 1st lines differ - expected: '80', found: '96'