結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
ふーらくたる
|
| 提出日時 | 2017-02-10 22:23:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,030 bytes |
| コンパイル時間 | 899 ms |
| コンパイル使用メモリ | 74,960 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-28 05:13:11 |
| 合計ジャッジ時間 | 1,492 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <utility>
#include <cstdio>
#include <queue>
#include <stack>
#include <algorithm>
#include <numeric>
#include <vector>
#include <set>
#include <map>
#include <string>
#include <cstring>
using namespace std;
#define ALL(a) (a).begin(), (a).end()
using ll = long long;
using P = pair<int, int>;
struct State {
int v, cost;
State(int v, int cost): v(v), cost(cost) {}
// 昇順
bool operator<(const State& s) const {
return cost < s.cost;
}
// 降順
bool operator>(const State& s) const {
return cost > s.cost;
}
};
void dump_vector(vector<int> vec) {
for (int i = 0; i < vec.size(); i++) {
cout << vec[i] << (i < vec.size() - 1 ? " " : "\n");
}
}
int main() {
map<int, int> counter;
for (int i = 0; i < 9; i++) {
int b;
cin >> b;
counter[b]++;
}
for (int d = 1; d <= 10; d++) {
if (counter.find(d) == counter.end()) {
cout << d << endl;
}
}
return 0;
}
ふーらくたる