Golfy Arrays with test cases

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

http://golf.shinh.org/p.rb?Golfy+ARrays but with fewer exploits.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

[3]
[0,0]
[0,100,51]
[1,2,3,4,5,6,7,8,9]
[0,0,0,0,0,0,9,8,7,10]
[100,101]
[1,0]
[1,2,1]
[3,4,3]
[0,100,49]
[9,8,7,6,5,4,3,2,1]
[0,0,0,0,0,0,100,5]

Sample output:

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

Sample input:_

[77, 78, 150, 165, 143, 233, 264, 268, 334, 250, 262, 343, 365, 377, 263, 391]
[60]
[92, 162, 176, 227, 306, 289]
[107, 121, 148, 226, 225, 93, 11, 131, 88, 91, 214, 117, 165]
[76, 39, 189, 150, 179, 31, 201, 72, 230, 171]
[84, 134, 155, 220, 157, 173, 206]
[26, 36, 33, 62, 47, 68, 82, 75]
[193, 131, 225, 113, 157, 137]
[11, 17, 27, 20, 34]
[76, 78]
[181, 176, 231, 62, 220, 236, 215, 64]
[100, 118, 121, 220]
[73, 143, 194, 247, 237, 263, 318, 263, 289]
[75, 87, 134, 116, 200, 124, 245, 261]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[98, 167, 202, 272, 238, 316, 417, 448, 447, 302, 532, 318]
[17, 200, 219, 111, 181, 70, 137, 42, 134, 180, 19, 46, 114, 212, 38]
[38, 82, 135, 169, 243, 45, 138, 227, 117, 33, 37, 251, 113, 7]
[72, 86, 144, 108, 185, 119, 233, 174, 181, 271, 244, 319]
[53, 14]
[114, 44, 89, 201, 218, 191, 205, 72, 87, 185, 57, 91, 83]
[49, 54, 59, 76, 103]
[247]
[90, 91, 135, 176]
[6, 37, 231, 58, 1, 11, 107, 136, 200]
[65, 81, 83, 126, 111, 110]
[191, 109, 178, 83, 89, 41, 155, 19, 234, 175, 49, 233, 162, 232, 32, 100, 110, 49, 47]
[171, 95, 52, 119, 136, 136, 236, 55, 223, 65, 62, 63, 31, 62, 177, 252, 141, 2]
[116]
[49, 70, 64, 80, 77, 132]
[157, 85, 122, 100, 65, 154, 214]
[47]
[164, 80, 146, 102, 204, 74, 66, 46, 208, 6, 164, 139, 200]
[79, 151, 132, 134, 202, 217]
[23, 24, 24, 44, 47, 59, 55, 44, 71, 78, 77, 76, 102, 60, 96, 67, 102, 119, 78]
[6, 10, 10, 16, 20, 23, 20, 25, 19, 21, 30, 29, 29, 34, 24, 32, 35, 25, 23, 23]
[35, 135, 101, 252, 87, 87, 195, 98]
[90, 118, 195, 145, 145, 156, 233, 197, 239, 214]
[9, 18, 22, 21, 25]
[7, 11, 16, 14, 13]
[40, 79, 67, 98, 74, 130, 134, 113, 177, 173, 184]
[244, 208, 111, 135, 14, 243, 215, 131, 104, 216]
[147, 59, 165, 216, 116, 194, 42, 49, 234, 50, 86, 196, 253, 134, 64, 2, 77, 0, 59]
[41, 58, 57, 61, 55, 55, 82, 106, 112, 117, 118, 120]
[36, 143, 246, 85, 67, 32, 97, 171, 87, 128, 196, 29, 176]
[43, 66, 59, 97, 97, 108, 122, 108]
[138, 104]
[92]
[103, 122, 208, 243, 272, 326, 373, 448, 281, 465, 560, 504, 452, 366, 513, 466]
[221, 191, 90, 41, 236, 234, 235, 137]
[39, 58, 72, 67, 111, 124, 103, 140, 105, 170, 156]
[111, 223, 88, 29, 5, 236, 96, 170, 74, 252, 117, 248, 154, 53, 248, 80, 49, 46, 189]
[58, 116, 170, 157, 199, 243, 181, 201, 34, 148, 31, 35, 164, 24, 154]
[123, 168, 226, 306, 218, 269, 267, 336]
[78, 156, 228, 243, 224, 246, 224, 313, 372]
[91, 27, 123]
[215, 114, 139, 41, 158, 79, 254, 36, 187, 193]
[209, 246, 58, 44, 57, 151, 107, 226, 43, 217, 20, 208, 121, 228, 43, 107, 94, 119]
[127, 224, 198, 345, 403, 503, 308, 468, 420]
[46, 81, 110, 100, 134]
[147, 120, 102, 11, 78, 203, 227, 198, 58, 141, 26, 127]
[221, 39, 88, 180, 242, 158, 59, 244, 192, 130, 167, 73, 99, 125, 173, 113, 191, 12]
[81, 219, 93, 205, 217, 198, 20, 255]
[77, 246, 112, 37, 185, 24, 112, 241, 119, 20, 174, 189]
[88, 108, 133, 173, 211, 149, 172, 148]
[0, 168, 227, 83]
[230, 127, 39, 173, 144, 236, 12, 84, 110, 125, 146, 251, 140, 136, 196]
[30, 57, 44, 55, 85, 57, 90, 87, 115, 122, 115, 90, 93, 134, 97, 85, 149]
[249, 121, 2, 234, 14, 133, 64, 65, 7]
[40, 68, 87, 106, 142, 109, 151]
[21, 31, 31, 44, 62, 61, 71, 74, 91, 64, 81, 107, 80, 103, 83, 89, 112]
[58, 97, 94, 133, 160, 129, 158, 181, 141, 153, 132, 205, 255, 167, 280, 199, 286, 255, 278]
[124, 214, 174, 314, 360, 367, 344, 398, 354, 386, 593]
[3, 3, 6, 6, 9, 8, 12, 13]
[103, 127, 189, 157, 227, 238, 228, 315, 274, 240, 314, 314, 260, 398, 476]
[118, 226, 305, 260, 316, 445, 430, 330, 597, 576, 392, 668, 588, 510, 746, 448]
[125, 183, 226, 229, 327, 257, 431, 364, 386, 352, 454, 339, 427, 428, 609, 552, 533, 372, 576]
[230, 187, 215, 11, 77, 68]
[85, 15, 21, 138, 60, 217, 154]
[11, 20, 31, 30, 27, 36, 29, 37, 29, 44, 54, 54, 67, 66, 62, 54]
[65, 82, 43, 243]
[98, 188, 218, 226, 225, 213, 222, 286, 266, 415, 306, 249, 454]
[119, 223, 221, 205, 365, 386, 475, 334, 356]
[52, 72, 91, 78, 97, 97]
[184, 160, 94, 93, 110, 247, 226, 227, 193, 174, 158, 26, 177, 94, 236, 124, 79, 232, 137]
[182, 174, 177, 101, 46, 100, 186, 4, 253, 2, 130, 136, 32, 121]
[213, 198, 248, 0, 24, 84, 217, 29, 173]
[17, 17, 22, 20, 25, 35, 46, 43, 51, 53, 55, 69]
[142, 34, 42]
[95, 143, 162, 136, 161, 192, 202, 231, 310, 257, 241, 204, 286, 361, 264, 341]
[79, 131, 206, 162, 277, 316, 383, 442, 430, 441, 365, 326, 335, 495, 502, 512, 669, 706, 516, 392]
[176, 85, 89, 96, 80, 77, 182, 161, 221, 248, 169, 252, 39]
[2, 2, 4, 4, 3, 6]
[141, 215, 15, 230, 60, 250, 188, 239, 79, 97, 53, 44, 8, 211, 66, 203, 238]
[58, 105, 144, 187, 150, 223, 145, 196, 267, 310, 279, 366, 321, 288, 429]
[105, 193]
[193, 170, 173, 28, 120, 95]
[6, 10, 12, 10, 19, 20, 17, 22, 25, 22, 31, 25, 36, 24, 37, 41]
[64, 79, 139, 187, 143, 188, 171, 145]
[85, 167, 219, 170, 251, 321, 389]
[2, 4, 3, 3, 6, 7, 7, 8, 8]
[222, 16, 5, 63, 149, 192]
[64, 216, 75, 224, 208]
[48, 58, 98, 73, 95, 86, 112, 106, 93, 131, 104, 141, 142, 106, 167, 163, 188]
[13, 25, 34, 38, 45, 52, 41, 39, 45, 72, 79, 67, 61, 89, 68, 80, 68, 91, 82, 94]
[44, 56, 98, 103, 147, 142, 165, 207, 161, 202, 145]
[174, 189, 62, 212, 197, 85, 46, 133, 59, 99, 184, 15, 123, 216, 161, 36, 174, 151]
[242, 88, 91, 131, 79, 242, 133, 137, 79, 200, 94, 92, 123, 18, 185, 20]
[78, 129, 118, 160, 154, 188, 185, 244, 198, 291, 221, 303, 234, 227, 247, 237, 317, 312, 423, 393]
[37, 53, 87]
[82, 137, 174]
[187, 64, 133, 75, 247, 56, 171, 215, 7, 78]
[51, 88, 80, 120, 166, 137, 200, 189, 147, 220, 260, 163, 201, 229, 312, 232, 260]
[185, 235, 53, 153, 220, 65, 238, 90, 247, 147, 229, 223, 125, 254, 141]
[122, 245, 204, 199, 28, 194, 61, 103, 91, 97, 153, 131]
[75, 131, 127, 208, 263, 192, 173, 253, 334, 299, 327]
[39, 71, 79, 122, 156]
[54, 95, 146, 190, 166, 200, 259, 246, 201, 275, 331]
[107, 208, 294, 251, 394]
[122, 228, 58, 162, 65, 17, 88, 120, 6, 112, 147]
[229, 100, 89, 223, 253, 167, 251, 166, 23, 19, 242, 234, 51, 163, 168, 37, 73, 42]
[32, 34, 63, 46, 47, 62, 67, 84, 91, 73, 69, 92, 120, 78]
[238, 140, 108, 102, 182, 68, 176, 6, 156, 129, 131, 3, 55]
[74, 131, 141, 176, 205, 266, 273]
[101, 103, 124, 131, 120, 224, 253, 256, 183, 268, 346]
[159]
[195, 62, 195, 52, 93, 50, 232, 203, 241, 135, 86, 155, 52]
[178, 107, 200, 71, 70, 249, 238, 18, 122, 109, 91, 106, 115, 205, 177, 232, 112, 47]
[111, 76, 247, 20, 46]
[68, 2, 248, 238, 221, 15, 88, 125, 195, 47]
[153]
[35]
[77, 132, 115, 203, 203, 269, 251, 237, 220, 234, 232, 363, 242, 279, 369, 398, 316, 423, 391, 391]
[72, 125, 124, 143]
[53, 110, 161, 234, 204, 177, 23, 35, 119, 33, 200, 100, 241, 117]
[75, 134]
[27, 182]
[96, 186, 154, 276, 221, 326, 323, 443, 431, 403]
[114, 196, 244, 247, 397, 401]
[53, 100, 102, 151, 185, 197, 244, 248, 296, 286, 331, 220, 252, 400, 299]
[205, 117, 69, 28, 86, 161, 193]
[74]
[137, 142, 44, 222, 255, 12]
[26, 166, 118, 15, 65, 75, 160, 182]
[12, 14, 14, 17, 23]
[15, 23, 31, 36, 51, 43, 67, 58, 70]
[117, 144, 166, 247, 64, 106, 87, 66]
[57, 66, 92, 103, 151, 103, 113, 146, 200, 174, 169, 224, 189]
[92, 131, 188, 272, 306]
[99, 87, 85, 70, 135, 118, 15, 187, 164, 1, 210]
[101, 175, 189, 250, 301, 211, 229, 380, 406, 330, 299, 476, 475, 571, 445, 606, 369, 415]
[115, 117, 195, 267, 267, 383, 355, 446, 476, 370, 476, 509, 572, 482, 375, 718]
[68, 38, 47, 143, 253, 154, 107, 0, 149, 119, 251, 202, 41]
[117, 230, 210]
[28, 219, 241, 123, 195, 224, 156, 115, 188, 162, 222]
[173, 241, 86, 250, 58, 25, 151, 112, 9, 224, 111, 184, 161, 18, 147]
[36, 241, 161, 107, 47, 74, 212, 111, 234, 71, 246, 243, 200, 46, 136]
[53, 56, 118, 106, 105, 230, 251, 249, 171, 68, 183, 150, 93, 187, 235, 38, 252, 244]
[216, 112, 115, 42, 125, 192, 26, 21, 13, 167, 29, 255, 216, 155, 118, 178, 221]
[195, 131]
[118, 107, 17, 213, 18, 101, 55, 91, 3, 195, 117, 168, 201, 60, 196, 138]
[95, 135, 133, 209, 164, 198, 168, 249, 195, 277, 290, 350, 290, 285, 388, 381]
[248, 146, 214, 37, 168, 114, 253, 110, 7, 87, 121, 48, 181, 49, 84, 1, 84, 227]
[109, 195, 242, 198]
[40, 71]
[223, 45, 234, 145, 143, 78, 185, 147, 74, 125, 195, 198, 142, 191, 174, 0, 31]
[173, 50, 109, 137, 215, 142, 197, 221, 186]
[116, 209, 296, 262, 378, 412, 294, 449, 566, 417, 345, 559, 467, 448, 424, 527, 449, 540, 670, 547]
[112]
[28]
[119, 203, 259, 237, 386, 324, 310, 292, 501]
[6, 9, 10, 14, 17, 19, 13, 19, 23, 18, 21, 31, 34, 35, 38, 41, 26]

Sample output:

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

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs500.02742017/10/19 07:08:130B / 28B / 20B
2Histocrat500.02732017/10/19 13:14:420B / 28B / 20B
3rotary-o510.03262017/10/21 15:06:410B / 27B / 22B

Ruby2 _

RankUserSizeTimeDateStatistics
1Histocrat500.14312017/10/20 00:44:050B / 28B / 20B
2mitchs500.14082017/11/05 12:07:050B / 28B / 20B
3rotary-o510.10862017/10/21 15:06:230B / 27B / 22B
4letranger550.11552017/10/19 23:25:300B / 25B / 26B

Perl _

RankUserSizeTimeDateStatistics
1tails480.02732017/10/19 10:06:090B / 11B / 37B
2teebee490.02412017/10/19 09:56:170B / 16B / 33B

Python _

RankUserSizeTimeDateStatistics
1hallvabo630.04632017/10/24 04:12:550B / 35B / 27B
2mitchs630.05272017/10/24 06:14:410B / 35B / 17B
3mitchs (alt)630.05112017/10/24 06:41:230B / 40B / 19B
4Mr. Xcoder (second try)670.05252017/10/19 21:34:220B / 44B / 19B
5Mr. Xcoder (first try)690.05562017/10/19 21:32:350B / 44B / 21B
6rolf690.05502017/10/21 00:42:400B / 43B / 22B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs700.09512017/10/24 07:05:340B / 39B / 21B
2fill750.09352017/10/24 16:58:500B / 48B / 25B
3mypetlion850.09242017/10/19 07:28:170B / 50B / 31B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea680.03702017/11/08 05:41:470B / 40B / 26B
2letranger710.03502017/10/20 20:07:480B / 40B / 29B
3ETHproductions740.03412017/10/19 10:00:350B / 39B / 35B

PARI/GP _

RankUserSizeTimeDateStatistics
1mitchs510.01922017/11/05 17:41:340B / 29B / 22B

Haskell _

RankUserSizeTimeDateStatistics
1henkma710.03322017/10/24 21:33:580B / 43B / 25B
2Laikoni870.03382017/10/19 07:14:090B / 51B / 36B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs110.17732017/10/19 11:34:442B / 6B / 3B
2tails110.16542017/10/19 12:27:173B / 7B / 1B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o974.18422017/11/08 00:13:240B / 62B / 31B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs1110000
2Perltails482291
3Rubymitchs502200
4Ruby2Histocrat502200
5PARI/GPmitchs512156
6Pythonhallvabo631746
7JavaScriptFizzyTea681617
8Python3mitchs701571
9Haskellhenkma711549
10Scalarotary-o971134

return to the top page