当前位置:网站首页>PAT甲级 1041 Be Unique
PAT甲级 1041 Be Unique
2022-07-24 03:42:00 【九是否非随机的称呼】
#include<iostream>
#include<vector>
#include<map>
#include<bits/stdc++.h>
using namespace std;
int main(void){
string s, s0, sub, sk;
int i, j, k, m, n;
cin>>m;
vector<int> v;
map<int, int> mp;
for(i = 0; i < m; i++){
cin>>n;
v.push_back(n);
mp[n] += 1;
}
j = -999;
for(i = 0; i < m; i++){
if(mp[v[i]]==1){
cout<<v[i];
j = 999;
return 0;
}
}
cout<<"None";
return 0;
}边栏推荐
- Network parameter management
- Technical dry goods | how difficult is data processing? Take a look at the solution provided by mindspire!
- [JS reverse hundred examples] a public resource trading network, reverse analysis of announcement URL parameters
- 错误代码0x80004005
- Mitsubishi Ethernet module Yuanchuang intelligent control yc8000-fx connection MCGS operation method
- Why do some people write code so complicated?
- IO stream sorting
- Demining game (analysis)
- 俄罗斯方块、1
- Express built-in Middleware
猜你喜欢

Developers share mindspire Lite experience, one click image segmentation

idea写web项目时报错Failed to load resource: the server responded with a status of 404 (Not Found)

Outlook client outlook.com mailbox setting method

Technical dry goods | evaluation index based on mindspire detailed perflexity language model
![Embedded system transplantation [5] - Cross compilation tool chain](/img/2a/eadaaafe794aa9b3106441fa50ffc7.png)
Embedded system transplantation [5] - Cross compilation tool chain

Appendtofile append failed

Xiaodi and Xiaohui

Cve-2022-29464 wso2 file upload vulnerability

The error of van swipe in the rotation chart: cannot read a properties of null (reading width)

Mitsubishi Ethernet module Yuanchuang intelligent control yc8000-fx connection MCGS operation method
随机推荐
[wepy2.0] installation
Matlab Simulink simulation of lithium iron phosphate battery
Mitsubishi Ethernet module Yuanchuang intelligent control yc8000-fx connection MCGS operation method
Basic syntax of MySQL DDL and DML and DQL
Expressions régulières \ \ B \ \ b compréhension de l'appariement des limites des mots
How to implement desktop lyrics in pyqt
Shengsi YiDianTong | deep learning analysis of classical convolutional neural network
08 reptile project
MySQL learning - MySQL software installation and environment configuration (Windows) details!
Common properties and traversal of trees and binary trees
Xiaodi and Xiaohui
STL multimap
IO stream sorting
IO流分类整理
【无标题】
STL set container
什么是IMU?
Arduino interrupt realizes rising edge detection and executes other functions
Okaleido tiger NFT is about to log in to the binance NFT platform. Are you looking forward to it?
Cannot resolve symbol 'override' of idea clone‘
https://github.com/ZouJiu1/PAT