QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#21081 | #2655. Rats | iterater# | AC ✓ | 3ms | 3664kb | C++14 | 172b | 2022-02-27 14:31:50 | 2022-05-08 01:59:52 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long a, b, c;
cin >> a >> b >> c;
cout << ((a + 1) * (b + 1) / (c + 1) - 1) << "\n";
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 3ms
memory: 3644kb
input:
15 18 11
output:
24
result:
ok single line: '24'
Test #2:
score: 0
Accepted
time: 3ms
memory: 3640kb
input:
10 10 0
output:
120
result:
ok single line: '120'
Test #3:
score: 0
Accepted
time: 2ms
memory: 3588kb
input:
0 0 0
output:
0
result:
ok single line: '0'
Test #4:
score: 0
Accepted
time: 3ms
memory: 3588kb
input:
9311 4440 2814
output:
14689
result:
ok single line: '14689'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
3809 745 153
output:
18455
result:
ok single line: '18455'
Test #6:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
4400 9932 3237
output:
13499
result:
ok single line: '13499'
Test #7:
score: 0
Accepted
time: 3ms
memory: 3664kb
input:
7659 8640 4031
output:
16415
result:
ok single line: '16415'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
1588 7703 596
output:
20504
result:
ok single line: '20504'
Test #9:
score: 0
Accepted
time: 3ms
memory: 3592kb
input:
9302 765 711
output:
10007
result:
ok single line: '10007'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
8906 4993 1944
output:
22868
result:
ok single line: '22868'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
5009 7451 882
output:
42280
result:
ok single line: '42280'
Test #12:
score: 0
Accepted
time: 3ms
memory: 3552kb
input:
3313 3206 2934
output:
3620
result:
ok single line: '3620'