結果

問題 No.481 1から10
コンテスト
ユーザー vjudge1
提出日時 2026-02-11 01:11:56
言語 C++23
(gcc 15.2.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,248 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,468 ms
コンパイル使用メモリ 352,796 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-02-11 01:12:00
合計ジャッジ時間 4,443 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ordered_set tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update>
#define ll long long
#define vi vector<int>
#define vll vector<ll>
#define all(a) a.begin(), a.end()
#define f(i, s, e) for (ll i = s; i < e; ++i)
#define fr(i, s, e) for (ll i = s; i > e; --i)
#define vvi vector<vector<int>>
#define pb push_back
template <class T>
void print_v(vector<T> &v)
{
    for (auto x : v)
        cout << x << ' ';
    cout << '\n';
}



#define pii pair<int, int>
#define pll pair<ll, ll>
#define fraction(a)               \
    cout.unsetf(ios::floatfield); \
    cout.precision(a);            \
    cout.setf(ios::fixed, ios::floatfield);
void yes() { cout << "YES\n"; }
void no() { cout << "NO\n"; }



void solve() {
    ll sm =  (10 * 11) / 2;

    ll x;
    f(i, 0, 9) {cin >> x; sm -= x;}
    cout << sm << '\n';
    
}


int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    int t = 1;
    // cin >> t;
    while (t--)
        solve();
    return 0;
}
0