QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#85987 | #2051. Count The Ones | Ahmed_Abdelmegeed# | AC ✓ | 2ms | 3524kb | C++20 | 1.1kb | 2023-03-08 23:11:27 | 2023-03-08 23:11:29 |
Judging History
answer
#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long
#define ld long double
#define el "\n"
#define matrix vector<vector<int>>
#define pt complex<ld>
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
#define ordered_multiset tree<ll, null_type,less_equal<ll>, rb_tree_tag, tree_order_statistics_node_update>
using namespace __gnu_pbds;
using namespace std;
const ll N = 2e5 + 5, LOG = 20, INF = 1e18;
const ld pi = acos(-1);
const ll mod = 1e9 + 7;
const ld eps = 1e-12;
int dx[] = {0, -1, 0, 1, -1, 1, -1, 1};
int dy[] = {-1, 0, 1, 0, 1, -1, -1, 1};
ll n, m, x, y, k;
void dowork() {
int a, b, c;
cin >> a >> b >> c;
cout << b - c + 1 << el;
}
signed main() {
fast
//freopen("lis.in", "r", stdin);
//freopen("bitwise.out", "w", stdout);
int t = 1;
//cin >> t;
for (int i = 1; i <= t; i++) {
dowork();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3408kb
input:
3 2 1
output:
2
result:
ok answer is '2'
Test #2:
score: 0
Accepted
time: 2ms
memory: 3400kb
input:
10 9 1
output:
9
result:
ok answer is '9'
Test #3:
score: 0
Accepted
time: 2ms
memory: 3520kb
input:
1000000000 999999999 1
output:
999999999
result:
ok answer is '999999999'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3396kb
input:
6 3 2
output:
2
result:
ok answer is '2'
Test #5:
score: 0
Accepted
time: 2ms
memory: 3436kb
input:
100 10 5
output:
6
result:
ok answer is '6'
Test #6:
score: 0
Accepted
time: 2ms
memory: 3440kb
input:
100 99 98
output:
2
result:
ok answer is '2'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3392kb
input:
1000000000 999999999 999999998
output:
2
result:
ok answer is '2'
Test #8:
score: 0
Accepted
time: 2ms
memory: 3392kb
input:
15 10 5
output:
6
result:
ok answer is '6'
Test #9:
score: 0
Accepted
time: 2ms
memory: 3524kb
input:
1000 500 100
output:
401
result:
ok answer is '401'
Test #10:
score: 0
Accepted
time: 2ms
memory: 3452kb
input:
1000000000 999999999 100
output:
999999900
result:
ok answer is '999999900'