結果

問題 No.481 1から10
ユーザー ooooobaoooooba
提出日時 2021-01-07 22:50:02
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 427 bytes
コンパイル時間 2,165 ms
コンパイル使用メモリ 108,900 KB
最終ジャッジ日時 2025-01-17 10:28:04
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <optional>
#include <vector>

using namespace std;

int main() {
    array<bool, 10> bs;
    for (auto i = 0; i < size(bs) - 1; ++i) {
        int32_t b;
        cin >> b;
        bs[b - 1] = true;
    }
    for (auto i = 0; i < size(bs); ++i) {
        if (!bs[i])
            cout << i + 1 << endl;
    }
    return 0;
}
0