QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#85623#2051. Count The Onestriplem5ds#AC ✓8ms10616kbC++201.5kb2023-03-07 23:13:242023-03-07 23:13:26

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-07 23:13:26]
  • 评测
  • 测评结果:AC
  • 用时:8ms
  • 内存:10616kb
  • [2023-03-07 23:13:24]
  • 提交

answer

///Enta etfsh5t nseet el rank

#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx,avx2,fma")

#include "bits/stdc++.h"
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update

using namespace std;
using namespace __gnu_pbds;

template<typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag,
        tree_order_statistics_node_update>;
#define pb push_back
#define F first
#define S second
#define f(i, a, b) for (int i = a; i < b; i++)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define sz(x) (int)(x).size()
#define mp(x, y) make_pair(x, y)
#define popCnt(x) (__builtin_popcountll(x))
#define int ll

using ll = long long;
using ull = unsigned long long;
using uint = uint32_t;
using ii = pair<int, int>;

const int N = 3e5 + 6, LG = 18, MOD = (119 << 23) + 1;
const long double PI = acos(-1);
const long double EPS = 1e-9;
const ll INF = 1e15;

typedef complex<double> C;
typedef vector<double> vd;
#define rep(i, a, b) for (int i = a; i < b; ++i)
typedef vector<ll> vl;
typedef vector<int> vi;
vector<int> adj[N];


void doWork() {

    int a, b, c;
    cin >> a >> b >> c;
    cout << (b - c + 1) << '\n';

}


int32_t main() {
#ifdef ONLINE_JUDGE
    ios_base::sync_with_stdio(0);
    cin.tie(0);
#endif // ONLINE_JUDGE

    int t = 1;
//    cin >> t;
    while (t--)
        doWork();

    return 0;
}

詳細信息

Test #1:

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

input:

3 2 1

output:

2

result:

ok answer is '2'

Test #2:

score: 0
Accepted
time: 3ms
memory: 10468kb

input:

10 9 1

output:

9

result:

ok answer is '9'

Test #3:

score: 0
Accepted
time: 7ms
memory: 10376kb

input:

1000000000 999999999 1

output:

999999999

result:

ok answer is '999999999'

Test #4:

score: 0
Accepted
time: 7ms
memory: 10384kb

input:

6 3 2

output:

2

result:

ok answer is '2'

Test #5:

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

input:

100 10 5

output:

6

result:

ok answer is '6'

Test #6:

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

input:

100 99 98

output:

2

result:

ok answer is '2'

Test #7:

score: 0
Accepted
time: 2ms
memory: 10612kb

input:

1000000000 999999999 999999998

output:

2

result:

ok answer is '2'

Test #8:

score: 0
Accepted
time: 8ms
memory: 10416kb

input:

15 10 5

output:

6

result:

ok answer is '6'

Test #9:

score: 0
Accepted
time: 2ms
memory: 10612kb

input:

1000 500 100

output:

401

result:

ok answer is '401'

Test #10:

score: 0
Accepted
time: 7ms
memory: 10432kb

input:

1000000000 999999999 100

output:

999999900

result:

ok answer is '999999900'