QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#817369#2655. RatsSGColinAC ✓0ms1636kbC++20157b2024-12-16 21:59:182024-12-16 21:59:18

Judging History

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

  • [2024-12-16 21:59:18]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:1636kb
  • [2024-12-16 21:59:18]
  • 提交

answer

#include<cstdio>
using namespace std;

int a,b,c;

int main(){
    scanf("%d%d%d",&a,&b,&c);
    printf("%d\n",(a+1)*(b+1)/(c+1)-1);
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 1532kb

input:

15 18 11

output:

24

result:

ok single line: '24'

Test #2:

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

input:

10 10 0

output:

120

result:

ok single line: '120'

Test #3:

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

input:

0 0 0

output:

0

result:

ok single line: '0'

Test #4:

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

input:

9311 4440 2814

output:

14689

result:

ok single line: '14689'

Test #5:

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

input:

3809 745 153

output:

18455

result:

ok single line: '18455'

Test #6:

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

input:

4400 9932 3237

output:

13499

result:

ok single line: '13499'

Test #7:

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

input:

7659 8640 4031

output:

16415

result:

ok single line: '16415'

Test #8:

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

input:

1588 7703 596

output:

20504

result:

ok single line: '20504'

Test #9:

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

input:

9302 765 711

output:

10007

result:

ok single line: '10007'

Test #10:

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

input:

8906 4993 1944

output:

22868

result:

ok single line: '22868'

Test #11:

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

input:

5009 7451 882

output:

42280

result:

ok single line: '42280'

Test #12:

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

input:

3313 3206 2934

output:

3620

result:

ok single line: '3620'