Please sign in first.
Submission #35372819
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int N;
cin >> N;
map<int, int> mp;
for(int i = 0; i < 2 * N - 1; i++){
int A;
cin >> A;
mp[A]++;
}
for(auto p : mp){
if(p.second == 1) cout << p.first << endl;
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | D - 二人三脚 (Three-Legged Race) |
| User | Hattori8536 |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 290 Byte |
| Status | AC |
| Exec Time | 7 ms |
| Memory | 3568 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, sample-01.txt, sample-02.txt, sample-03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 7 ms | 3512 KiB |
| 01-02.txt | AC | 2 ms | 3516 KiB |
| 01-03.txt | AC | 2 ms | 3556 KiB |
| 01-04.txt | AC | 3 ms | 3516 KiB |
| 01-05.txt | AC | 2 ms | 3480 KiB |
| 01-06.txt | AC | 2 ms | 3552 KiB |
| 01-07.txt | AC | 2 ms | 3560 KiB |
| 01-08.txt | AC | 2 ms | 3428 KiB |
| sample-01.txt | AC | 2 ms | 3516 KiB |
| sample-02.txt | AC | 2 ms | 3568 KiB |
| sample-03.txt | AC | 2 ms | 3556 KiB |