[C++] AtCoder Beginner Contest 182 A번 twiblr

AtCoder Beginner Contest 182 A번 twiblr

문제

https://atcoder.jp/contests/abc182/tasks/abc182_a abc182_a

풀이

단순한 산수 문제

현재 B명을 팔로잉 중일 때 추가로 몇 명을 더 팔로잉 할 수 있는지 구하는 문제

코드

#pragma warning(disable : 4996)
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef long double ld;
typedef vector<ll> vll;
typedef pair<ll, ll> pll;
typedef pair<ld, ld> pld;
typedef tuple<ll, ll, ll> tl3;
#define FOR(a, b, c) for (int(a) = (b); (a) < (c); ++(a))
#define FORN(a, b, c) for (int(a) = (b); (a) <= (c); ++(a))
#define rep(i, n) FOR(i, 0, n)
#define repn(i, n) FORN(i, 1, n)
#define tc(t) while (t--)
// https://atcoder.jp/contests/abc182/tasks/abc182_a
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
 
    ll a,b;
    cin >> a >> b;
    cout << (2 * a + 100) - b;
    
 
    return 0;
}