Submission #00008


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include<algorithm>
#include<iostream>
#include<math.h>
#include<stdio.h>
#include<vector>
#include<limits.h>
#include<string>
#include<cstdlib>
#include<queue>
#include<iterator>
#include<deque>
#include<set>
#include<unordered_set>
#include<map>
#include<stack>
#define mset multiset
#define unset unordered_set
#define ll long long
#define endl "\n";
#define prg_queue priority_queue <int,vector<int>,greater<int>
#define pr_queue priority_queue <int>
#define vector vector <int>
#define upper upper_bound
#define lower lower_bound
using namespace std;
int main(){
ll a,b=0,c=0,d=0,e=0;
set <int> q;
auto p=q.end();
cin >>a>>b;
for (int o=0; o<a; o++){
cin >>c;
q.insert(c);
}
for (int o=0; o<b; o++){
cin >>c;
p=q.find(c);
if(p!=q.end()){
q.erase(q.find(c));
}
}
for (auto i:q){
cout <<i<<endl
}
return 0;
}

ステータス

項目 データ
問題 0003 - データの整理
ユーザー名 SnakyZoo8277089
投稿日時 2024-07-08 16:39:44
言語 C++17
状態 Accepted
得点 15
ソースコード長 968 Byte
最大実行時間 91 ms
最大メモリ使用量 2096 KB

セット

セット 得点 Cases
1 ALL 15 / 15 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 20 ms 476 KB
1
in2.txt AC 28 ms 448 KB
1
in3.txt AC 31 ms 676 KB
1
in4.txt AC 91 ms 2020 KB
1
in5.txt AC 88 ms 2056 KB
1
in6.txt AC 83 ms 2096 KB
1
in7.txt AC 86 ms 2012 KB
1