QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#390070#2655. Ratskevinyang#AC ✓1ms3704kbC++17235b2024-04-15 02:05:172024-04-15 02:05:17

Judging History

This is the latest submission verdict.

  • [2024-04-15 02:05:17]
  • Judged
  • Verdict: AC
  • Time: 1ms
  • Memory: 3704kb
  • [2024-04-15 02:05:17]
  • Submitted

answer

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
    cin.tie(nullptr)->sync_with_stdio(false);
    int a,b,c;
    cin >> a >> b >> c;
    cout << (a+1)*(b+1)/(c+1) - 1 << '\n';
    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3648kb

input:

15 18 11

output:

24

result:

ok single line: '24'

Test #2:

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

input:

10 10 0

output:

120

result:

ok single line: '120'

Test #3:

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

input:

0 0 0

output:

0

result:

ok single line: '0'

Test #4:

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

input:

9311 4440 2814

output:

14689

result:

ok single line: '14689'

Test #5:

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

input:

3809 745 153

output:

18455

result:

ok single line: '18455'

Test #6:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

4400 9932 3237

output:

13499

result:

ok single line: '13499'

Test #7:

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

input:

7659 8640 4031

output:

16415

result:

ok single line: '16415'

Test #8:

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

input:

1588 7703 596

output:

20504

result:

ok single line: '20504'

Test #9:

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

input:

9302 765 711

output:

10007

result:

ok single line: '10007'

Test #10:

score: 0
Accepted
time: 1ms
memory: 3640kb

input:

8906 4993 1944

output:

22868

result:

ok single line: '22868'

Test #11:

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

input:

5009 7451 882

output:

42280

result:

ok single line: '42280'

Test #12:

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

input:

3313 3206 2934

output:

3620

result:

ok single line: '3620'