IOS Development: UIIMAGE Phase color —– Give IMAGE to 16th-in color value

2022-12-28   ES  

After learning set, you can’t do it again.

#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <queue>
#include <cmath>
#include <string>
#include <set>
#include <ctype.h>
#include <string.h>
using namespace std;

const int N = 50010;
const int INF = 1000000;

int main()
{
 //   freopen("in.txt", "r", stdin);
    int n, m, num;
    while(~scanf("%d%d", &n, &m))
    {
        set <int> s;
        for(int i = 0; i < n; i ++)
        {
            scanf("%d", &num);
            s.insert(num);
        }
        for(int i = 0; i < m; i ++)
        {
            scanf("%d", &num);
            s.insert(num);
        }
        cout << *s.begin();
        s.erase(s.begin());
        for(set<int>::iterator it = s.begin(); it != s.end(); it ++)
            cout << " "<< *it;
        printf("\n");
    }
    return 0;
}

source

Related Posts

IOS integrates Charts drawing a chart framework in OC project

SpringBoot series: Spring Boot asynchronous call @Async

Write blog and publish with Typora

Ubuntu18.10 Wine runs the Great Navigation era II, Jin Yong Qunxiazhuan 1. Three Kingdoms Zhiyingjie Biography, Xiao Ao Jianghu

IOS Development: UIIMAGE Phase color —– Give IMAGE to 16th-in color value

Random Posts

Open the agent through SSH [2] xshell for port forwarding

cache system introduction

Mini Program TCB-ROUTER cloud development and use

[Vulnerability Reap] Moniker disables the vulnerability | OLE logic vulnerability (CVE-2017-8570)

javaee: Use BCRYPT to verify the login password without