Submission #1093053
Source Code Expand
#include<iostream> #include<cstdio> #include<stdio.h> #include<cstring> #include<cstdio> #include<climits> #include<cmath> #include <bitset> #include<algorithm> #include <queue> using namespace std; unsigned long long int a[100008], b[100008], n, i; int flag; int main() { cin >> n; memset(b, 0, sizeof(b)); flag = 0; for (i = 1; i <= n; i++) { cin >> a[i]; b[a[i]]++; if (b[a[i]] > 1) { flag = 1; } } if (flag == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
Submission Info
Submission Time | |
---|---|
Task | B - Boxes |
User | SmallSir |
Language | C++14 (Clang 3.8.0) |
Score | 0 |
Code Size | 551 Byte |
Status | RE |
Exec Time | 117 ms |
Memory | 1656 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 500 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, in1.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, in16.txt, in17.txt, in18.txt, in19.txt, in2.txt, in20.txt, in21.txt, in22.txt, in23.txt, in24.txt, in25.txt, in26.txt, in27.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in1.txt | RE | 117 ms | 1656 KB |
in10.txt | RE | 112 ms | 1024 KB |
in11.txt | RE | 111 ms | 1024 KB |
in12.txt | RE | 112 ms | 1024 KB |
in13.txt | RE | 112 ms | 1024 KB |
in14.txt | AC | 3 ms | 1024 KB |
in15.txt | RE | 111 ms | 1024 KB |
in16.txt | RE | 111 ms | 1024 KB |
in17.txt | RE | 113 ms | 1024 KB |
in18.txt | RE | 112 ms | 1024 KB |
in19.txt | AC | 3 ms | 1024 KB |
in2.txt | RE | 112 ms | 1024 KB |
in20.txt | AC | 3 ms | 1024 KB |
in21.txt | RE | 112 ms | 1024 KB |
in22.txt | RE | 111 ms | 1024 KB |
in23.txt | RE | 111 ms | 1024 KB |
in24.txt | RE | 111 ms | 1024 KB |
in25.txt | RE | 112 ms | 1024 KB |
in26.txt | RE | 111 ms | 1024 KB |
in27.txt | RE | 112 ms | 1024 KB |
in3.txt | RE | 111 ms | 1024 KB |
in4.txt | RE | 111 ms | 1024 KB |
in5.txt | RE | 111 ms | 1024 KB |
in6.txt | RE | 111 ms | 1024 KB |
in7.txt | RE | 112 ms | 1024 KB |
in8.txt | RE | 111 ms | 1024 KB |
in9.txt | RE | 110 ms | 1024 KB |
sample1.txt | AC | 3 ms | 1024 KB |
sample2.txt | AC | 3 ms | 1024 KB |
sample3.txt | AC | 3 ms | 1024 KB |