Non Unique Arrays

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Given a list of integers, determine whether at least one of the elements appears more than once.

--- Mr. Xcoder

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

[1,2,3,4,5,6]
[5,6,8,4,2,4]
[2,4,6,6,89,3]
[4,5,6,7,8]
[2,3,2,3]
[5,5,5,5,5,5]
[2,4,6,7,25]
[3,5,3,23,5,7,43,2]
[5,3,2,4,5,7]
[5,6,7,3,23,5]
[7,8,32,5,7,9,28,81]
[9,56,3,126,7]

Sample output:

0
1
1
0
1
1
0
1
1
1
1
0

Sample input:_

[20, 7]
[15, 17, 9, 8, 21, 5, 6, 22, 10, 20, 31, 1, 16, 14, 11]
[10, 29, 10, 29, 21, 5, 24, 7, 35, 19, 11, 30, 11, 1, 35, 5, 10, 29, 22, 33]
[7, 25, 26, 26, 4]
[10, 10, 22, 8, 3, 32, 11, 29, 35, 22, 9, 28, 32, 10, 12, 4, 12, 8, 18, 11, 9, 24, 10, 16]
[16, 34, 33, 0, 4, 35, 31, 9, 21, 1, 33, 18, 31, 20, 9, 14, 1, 9]
[33, 31, 7]
[6, 2, 18, 8, 27, 26, 19, 3, 18, 23, 1, 17]
[30, 20, 11, 32, 10, 26, 3, 8]
[4, 13, 22, 32, 3, 8, 3, 9]
[10, 35]
[27, 12, 21, 15, 9, 20, 12, 31, 14, 22, 12]
[8, 9, 14, 33, 20, 35, 10, 0, 10, 30, 28, 11, 7, 34, 19, 8, 7, 23, 14, 29, 8, 23]
[1, 28, 35, 17, 19, 29, 33, 4, 23, 23, 29, 4, 26, 1, 26, 24, 7, 20, 24, 2, 5, 8]
[12, 13, 34, 1]
[9, 28, 10, 12, 21, 29, 21, 17, 20, 6, 17]
[25, 23, 9, 19]
[23, 3, 9, 8, 13, 9, 8]
[20, 1, 24, 31, 1, 14, 9, 28, 26, 34]
[4, 15, 34, 10, 29, 9, 0, 17, 10, 32, 1, 29, 22]
[24, 17, 13, 1, 14, 27, 19, 16, 30, 16, 9, 29, 31, 26, 1, 17, 18, 15, 1]
[22, 9, 22, 0, 19]
[21, 0, 19, 31, 20, 29, 23, 5, 23, 20, 33, 35, 4, 31, 34, 0]
[29, 16, 30, 32, 21, 33]
[21, 9, 20, 24, 11, 13]
[4, 4, 29, 14, 13, 14, 19, 0, 5, 14, 33, 20, 24]
[28, 31, 34, 22, 21, 13, 35, 30, 19, 32, 7, 15, 5]
[25, 8, 15, 30, 13, 18, 1, 29, 29, 35]
[10, 19, 3, 28, 1, 30, 19, 11, 32, 20, 13, 22, 27, 24, 5, 31, 16, 19]
[1, 26, 20, 25, 13]
[33, 16, 12, 23, 26, 10, 24, 25, 15, 9, 15, 29]
[14, 24, 16, 27, 27, 25, 10, 22, 9, 14, 6, 2, 4, 23, 21, 17, 24]
[26, 35, 34, 19, 7, 5, 33, 26, 6, 28, 6, 31, 24, 29, 30, 22, 11, 13]
[33, 4, 27, 15, 8, 34, 0, 24, 19, 19, 31, 32, 13, 8, 1, 29, 19, 28, 2]
[23, 5, 5, 29, 23, 28, 14, 9, 24, 15, 5, 11]

Sample output:

0
0
1
1
1
1
0
1
0
1
0
1
1
1
0
1
0
1
1
1
1
1
1
0
0
1
0
1
1
0
1
1
1
1
1

Sample input:_

[38, 40, 62, 52, 2, 98, 37, 24]
[22, 95, 47, 57, 28, 5, 67]
[64, 52, 67, 37, 67, 18, 92, 12, 53, 2, 90]
[33, 3, 92, 91, 84, 74, 18, 57, 48, 22, 1, 10]
[30, 84, 25, 45, 10, 100, 71, 50, 47, 30]
[81, 23, 101, 69, 85, 4, 68, 12, 101, 43, 68, 36, 52]
[21, 12, 96, 89, 42, 92, 5, 16, 39, 43, 44, 75, 4, 22]
[11, 79, 79, 35, 27, 57, 97]
[22, 17, 82, 20, 15, 2, 72, 97, 5, 52, 13, 41, 96, 85]
[44, 14, 68, 17, 80, 54, 23, 4, 35, 74, 34, 18, 28, 2, 39, 98]
[56, 13, 51, 33, 33, 6, 33, 99, 29, 12, 35]
[28, 43, 7, 11, 44, 44, 63, 63]
[20, 23, 89, 77, 86, 65, 8, 72, 31, 43, 51, 40]
[22, 31, 9, 64, 13, 37, 24, 16, 51, 39, 92, 60, 65, 20, 9]
[50, 9, 24, 28, 21, 87, 21, 80, 29, 76, 38, 71]
[21, 2, 13, 22, 89, 77, 23, 97, 79, 99, 20, 101]
[100, 90, 15, 67, 19, 71, 15, 34, 36, 9, 47, 8, 61, 73, 45, 29, 76]
[57, 62, 89, 94, 22, 69, 47, 74, 55, 3, 33, 13, 18]
[28, 10, 35, 0, 66, 97, 75, 68, 2, 73, 32, 73, 21, 91]
[63, 62, 89, 71, 16, 50, 92, 76, 45, 72, 55, 63, 93, 62, 83]
[85, 100, 68, 48, 39, 100, 66, 12, 34, 31, 64, 35]
[2, 26, 81, 45, 84, 28, 47, 10, 47, 41, 16, 69, 76, 2]
[45, 52, 88, 44, 5, 58, 68, 32, 17, 86, 20, 42, 45, 89, 52, 10, 20]
[76, 101, 76, 93, 100, 55, 16, 3, 23, 37, 71, 8]
[88, 40, 13, 45, 46, 46, 33, 11]
[68, 11, 4, 47, 83, 91]
[35, 56, 71, 79, 84, 81, 64, 48, 53, 98, 43, 38, 66, 96, 20]
[0, 39, 32, 74, 96, 87, 69, 53, 99]
[22, 15, 2, 96, 8, 52, 75, 11, 2]
[18, 84, 58, 14, 92, 82, 59, 62, 42, 36, 43]
[62, 16, 51, 92, 16, 75, 34]
[52, 30, 31, 27, 59, 19, 75, 40, 82, 76, 26]
[89, 30, 80, 96, 54, 2]
[0, 77, 98, 67, 94, 20, 86, 44, 93, 38, 13]
[82, 11, 23, 37, 85, 71, 61]
[5, 101, 28, 59, 26, 16]
[89, 74, 58, 85, 99, 93]
[82, 99, 18, 15, 91, 67, 48, 89, 76, 22, 47, 6, 60, 30, 91, 24]
[81, 15, 96, 19, 7, 34, 50]
[33, 12, 90, 91, 77, 10, 93]
[13, 49, 92, 16, 41, 22, 3, 23, 28, 89, 58, 47, 44, 11, 81, 46, 34]
[34, 66, 11, 70, 94, 69, 72, 13, 32, 5, 55]
[51, 56, 74, 35, 12, 45, 22, 57, 56]
[75, 3, 36, 30, 90, 42, 99, 97, 44, 100, 85, 37, 68, 45, 99, 25, 69]
[70, 48, 40, 1, 23, 78, 31, 11, 17, 58, 33, 66, 32, 12, 5]
[60, 79, 41, 63, 83]
[92, 43, 36, 55, 74, 73, 15, 21]
[60, 3, 39, 86, 15, 80, 14, 31, 14, 91, 66, 47, 71, 48, 1]
[34, 94, 92, 31, 61, 39, 100, 32, 1, 29, 11, 24, 18]
[58, 4, 49, 77, 89, 98, 67, 23, 8, 48, 70, 2]
[64, 92, 58, 37, 11, 34]
[96, 59, 62, 45, 41, 91, 70, 98, 3, 59, 90, 8]
[12, 65, 20, 81, 81, 24, 85, 31, 101, 73, 51, 28]
[9, 49, 4, 42, 34, 5]
[28, 14, 91, 26, 13, 4, 52, 54, 74]
[97, 64, 95, 11, 17, 38]
[75, 73, 97, 63, 48, 72, 77, 74, 70, 99, 0, 82, 85]
[99, 87, 27, 40, 77, 95, 88]
[37, 89, 26, 21, 43, 20, 33, 100]
[62, 67, 95, 29, 57, 4, 27, 82, 55, 58, 37]

Sample output:

0
0
1
0
1
1
0
1
0
0
1
1
0
1
1
0
1
0
1
1
1
1
1
1
1
0
0
0
1
0
1
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
1
0
0
0
1
1
0
0
0
0
0
0
0

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs290.03852017/11/06 01:01:570B / 19B / 8B
2xsot290.05352017/11/06 22:15:230B / 13B / 14B
3rotary-o290.03152017/11/07 00:17:000B / 19B / 8B
4Histocrat290.04072017/11/07 14:30:580B / 16B / 10B
5%20310.03932017/11/06 15:24:120B / 18B / 10B
6ndimov320.03902017/11/06 03:21:440B / 15B / 13B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs290.15322017/11/06 04:17:290B / 19B / 8B
2letranger290.12062017/11/06 19:29:420B / 13B / 14B
3xsot290.19852017/11/06 22:15:320B / 13B / 14B
4rotary-o290.15682017/11/07 00:16:460B / 19B / 8B
5%20310.15472017/11/06 15:24:190B / 18B / 10B
6ndimov320.15632017/11/06 03:21:550B / 15B / 13B

Perl _

RankUserSizeTimeDateStatistics
1mitchs320.03652017/11/06 12:20:290B / 13B / 19B
2tails320.03732017/11/06 15:32:030B / 13B / 19B
3%20320.03642017/11/06 15:35:230B / 13B / 19B
4letranger320.04222017/11/07 18:48:020B / 12B / 20B

Python _

RankUserSizeTimeDateStatistics
1mitchs440.07842017/11/06 00:18:460B / 28B / 15B
2Mr. Xcoder440.07302017/11/06 02:28:230B / 28B / 15B
3rolf440.07212017/11/06 02:37:310B / 28B / 15B
4xnor440.07592017/11/06 04:49:350B / 28B / 15B
5Hendrik440.07442017/11/06 06:53:410B / 28B / 15B
6xsot440.15152017/11/06 22:18:160B / 28B / 15B
7hallvabo440.09752017/11/08 19:30:310B / 25B / 19B
8recursive440.08022017/11/09 15:52:230B / 28B / 15B
9d.ve670.07342017/11/07 22:23:132B / 40B / 19B

Python3 _

RankUserSizeTimeDateStatistics
1xsot520.12182017/11/06 22:25:180B / 32B / 19B
2mitchs520.12372017/11/07 05:39:510B / 32B / 19B
3fill520.13652017/11/07 16:14:490B / 32B / 19B
4mypetlion530.13252017/11/10 03:38:050B / 33B / 19B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea520.04672017/11/07 07:01:040B / 26B / 26B
2letranger520.04842017/11/07 18:45:080B / 26B / 26B
3ETHproductions530.04232017/11/07 00:57:490B / 27B / 26B
4ETH (no regex)690.04532017/11/09 01:37:390B / 41B / 25B

PARI/GP _

RankUserSizeTimeDateStatistics
1mitchs320.03972017/11/06 00:11:310B / 21B / 11B

Perl6 _

RankUserSizeTimeDateStatistics
1tails341.62422017/11/06 15:53:500B / 13B / 19B

C _

RankUserSizeTimeDateStatistics
1tails870.03202017/11/07 17:48:440B / 37B / 50B

sed _

RankUserSizeTimeDateStatistics
1mitchs240.03492017/11/06 01:26:140B / 5B / 18B
2tails240.03492017/11/06 10:57:160B / 5B / 18B
3%20240.03502017/11/06 15:06:110B / 5B / 18B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails651.05762017/11/06 23:39:420B / 26B / 28B

dc _

RankUserSizeTimeDateStatistics
1tails630.01762017/11/07 00:41:350B / 51B / 9B

GolfScript _

RankUserSizeTimeDateStatistics
1mitchs140.15912017/11/06 09:43:370B / 1B / 13B
2tails140.15912017/11/06 15:51:130B / 1B / 13B
3rolf280.12652017/11/15 07:28:110B / 3B / 25B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs70.19342017/11/06 09:55:562B / 3B / 2B
2tails70.20352017/11/06 11:10:532B / 3B / 2B
3whio80.19642017/11/18 02:29:432B / 4B / 2B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik100.04742017/11/06 05:56:460B / 6B / 4B

goruby _

RankUserSizeTimeDateStatistics
1mitchs190.06852017/11/06 15:29:590B / 9B / 8B
2%20240.07532017/11/06 15:25:500B / 11B / 10B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o676.20772017/11/08 00:01:230B / 48B / 17B
2Hendrik676.11732017/11/08 02:32:460B / 48B / 17B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs710000
2BurlesqueHendrik107000
3GolfScriptmitchs145000
4gorubymitchs193684
5sedmitchs242916
6Rubymitchs292413
7Ruby2mitchs292413
8PARI/GPmitchs322187
9Perlmitchs322187
10Perl6tails342058
11Pythonmitchs441590
12Python3xsot521346
13JavaScriptFizzyTea521346
14dctails631111
15Bash (builtins)tails651076
16Scalarotary-o671044
17Ctails87804

return to the top page