QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#140305 | #2051. Count The Ones | west_virginia | AC ✓ | 1ms | 3632kb | C++20 | 307b | 2023-08-15 17:15:21 | 2023-08-15 17:15:23 |
Judging History
answer
#include<bits/stdc++.h>
#define jettdash ios_base::sync_with_stdio(0),cin.tie(0) ,cout.tie(0);
#define ll long long
#define yn(flag) cout<<((flag) ? "YES\n":"NO\n");
#define endl "\n"
ll MOD=1e9+7;
using namespace std;
int main() {
jettdash
ll a,b,c;cin>>a>>b>>c;
cout<<b-c+1<<endl;
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3596kb
input:
3 2 1
output:
2
result:
ok answer is '2'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3456kb
input:
10 9 1
output:
9
result:
ok answer is '9'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
1000000000 999999999 1
output:
999999999
result:
ok answer is '999999999'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3412kb
input:
6 3 2
output:
2
result:
ok answer is '2'
Test #5:
score: 0
Accepted
time: 1ms
memory: 3372kb
input:
100 10 5
output:
6
result:
ok answer is '6'
Test #6:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
100 99 98
output:
2
result:
ok answer is '2'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
1000000000 999999999 999999998
output:
2
result:
ok answer is '2'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
15 10 5
output:
6
result:
ok answer is '6'
Test #9:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
1000 500 100
output:
401
result:
ok answer is '401'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
1000000000 999999999 100
output:
999999900
result:
ok answer is '999999900'