Cody

Problem 44075. GJam 2017 Kickstart: Parentheses (Large)

Solution 1155539

Submitted on 6 Apr 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
v=parenc(36499,40104); assert(~isempty(v)) assert(v==666106750)

n = 36499

Assertion failed.

2   Fail
v=parenc(75814,21934); assert(~isempty(v)) assert(v==240561145)

n = 75814 n = 21934

Assertion failed.

3   Fail
v=parenc(88684,2943); assert(~isempty(v)) assert(v==4332096)

n = 88684 n = 2943

Assertion failed.

4   Fail
v=parenc(63688,19182); assert(~isempty(v)) assert(v==183984153)

n = 63688 n = 19182

Assertion failed.

5   Fail
v=parenc(71034,19757); assert(~isempty(v)) assert(v==195179403)

n = 71034 n = 19757

Assertion failed.

6   Fail
v=parenc(95210,572); assert(~isempty(v)) assert(v==163878)

n = 95210 n = 572

Assertion failed.

7   Fail
v=parenc(50000,50000); assert(~isempty(v)) assert(v==1250025000)

n = 50000

Assertion failed.

8   Fail
v=parenc(37583,54023); assert(~isempty(v)) assert(v==706259736)

n = 37583

Assertion failed.

9   Fail
v=parenc(13403,50583); assert(~isempty(v)) assert(v==89826906)

n = 13403

Assertion failed.

10   Fail
v=parenc(74324,16176); assert(~isempty(v)) assert(v==130839576)

n = 74324 n = 16176

Assertion failed.

11   Fail
v=parenc(95662,20); assert(~isempty(v)) assert(v==210)

n = 95662 n = 20

Assertion failed.

12   Fail
v=parenc(84426,8859); assert(~isempty(v)) assert(v==39245370)

n = 84426 n = 8859

Assertion failed.

13   Fail
v=parenc(1764,75732); assert(~isempty(v)) assert(v==1556730)

n = 1764

Assertion failed.

14   Fail
v=parenc(75135,17355); assert(~isempty(v)) assert(v==150606690)

n = 75135 n = 17355

Assertion failed.

15   Fail
v=parenc(16014,48995); assert(~isempty(v)) assert(v==128232105)

n = 16014

Assertion failed.

16   Fail
v=parenc(100000,0); assert(~isempty(v)) assert(v==0)

n = 100000 n = 0

Assertion failed.

17   Fail
v=parenc(90812,5679); assert(~isempty(v)) assert(v==16128360)

n = 90812 n = 5679

Assertion failed.

18   Fail
v=parenc(55860,34690); assert(~isempty(v)) assert(v==601715395)

n = 55860 n = 34690

Assertion failed.

19   Fail
v=parenc(82678,16936); assert(~isempty(v)) assert(v==143422516)

n = 82678 n = 16936

Assertion failed.

20   Fail
v=parenc(50696,22228); assert(~isempty(v)) assert(v==247053106)

n = 50696 n = 22228

Assertion failed.

21   Fail
v=parenc(60183,19425); assert(~isempty(v)) assert(v==188675025)

n = 60183 n = 19425

Assertion failed.

22   Fail
v=parenc(88288,3180); assert(~isempty(v)) assert(v==5057790)

n = 88288 n = 3180

Assertion failed.

23   Fail
v=parenc(18628,32214); assert(~isempty(v)) assert(v==173510506)

n = 18628

Assertion failed.

24   Fail
v=parenc(99681,195); assert(~isempty(v)) assert(v==19110)

n = 99681 n = 195

Assertion failed.

25   Fail
v=parenc(7,13); assert(~isempty(v)) assert(v==28)

n = 7

Assertion failed.

26   Fail
v=parenc(62367,35577); assert(~isempty(v)) assert(v==632879253)

n = 62367 n = 35577

Assertion failed.

27   Fail
v=parenc(54171,29950); assert(~isempty(v)) assert(v==448516225)

n = 54171 n = 29950

Assertion failed.

28   Fail
v=parenc(22417,8626); assert(~isempty(v)) assert(v==37208251)

n = 22417 n = 8626

Assertion failed.

29   Fail
v=parenc(37824,9490); assert(~isempty(v)) assert(v==45034795)

n = 37824 n = 9490

Assertion failed.

30   Fail
v=parenc(95981,624); assert(~isempty(v)) assert(v==195000)

n = 95981 n = 624

Assertion failed.

31   Fail
v=parenc(57025,7699); assert(~isempty(v)) assert(v==29641150)

n = 57025 n = 7699

Assertion failed.

32   Fail
v=parenc(1,1); assert(~isempty(v)) assert(v==1)

n = 1

Assertion failed.

33   Fail
v=parenc(16007,35971); assert(~isempty(v)) assert(v==128120028)

n = 16007

Assertion failed.

34   Fail
v=parenc(2306,52078); assert(~isempty(v)) assert(v==2659971)

n = 2306

Assertion failed.

35   Fail
v=parenc(70555,4927); assert(~isempty(v)) assert(v==12140128)

n = 70555 n = 4927

Assertion failed.

36   Fail
v=parenc(19454,63092); assert(~isempty(v)) assert(v==189238785)

n = 19454

Assertion failed.

37   Fail
v=parenc(73352,18081); assert(~isempty(v)) assert(v==163470321)

n = 73352 n = 18081

Assertion failed.

38   Fail
v=parenc(71344,18591); assert(~isempty(v)) assert(v==172821936)

n = 71344 n = 18591

Assertion failed.

39   Fail
v=parenc(76452,13351); assert(~isempty(v)) assert(v==89131276)

n = 76452 n = 13351

Assertion failed.

40   Fail
v=parenc(88885,3106); assert(~isempty(v)) assert(v==4825171)

n = 88885 n = 3106

Assertion failed.

41   Fail
v=parenc(53619,9977); assert(~isempty(v)) assert(v==49775253)

n = 53619 n = 9977

Assertion failed.

42   Fail
v=parenc(39466,15681); assert(~isempty(v)) assert(v==122954721)

n = 39466 n = 15681

Assertion failed.

43   Fail
v=parenc(33791,51813); assert(~isempty(v)) assert(v==570932736)

n = 33791

Assertion failed.

44   Fail
v=parenc(40408,42624); assert(~isempty(v)) assert(v==816423436)

n = 40408

Assertion failed.

45   Fail
v=parenc(998,12); assert(~isempty(v)) assert(v==78)

n = 998 n = 12

Assertion failed.

46   Fail
v=parenc(58818,23613); assert(~isempty(v)) assert(v==278798691)

n = 58818 n = 23613

Assertion failed.

47   Fail
v=parenc(82533,6389); assert(~isempty(v)) assert(v==20412855)

n = 82533 n = 6389

Assertion failed.

48   Fail
v=parenc(73823,18704); assert(~isempty(v)) assert(v==174929160)

n = 73823 n = 18704

Assertion failed.

49   Fail
v=parenc(24046,69819); assert(~isempty(v)) assert(v==289117081)

n = 24046

Assertion failed.

50   Fail
v=parenc(83603,2337); assert(~isempty(v)) assert(v==2731953)

n = 83603 n = 2337

Assertion failed.

51   Fail
v=parenc(95719,1658); assert(~isempty(v)) assert(v==1375311)

n = 95719 n = 1658

Assertion failed.

52   Fail
v=parenc(9,11); assert(~isempty(v)) assert(v==45)

n = 9

Assertion failed.

53   Fail
v=parenc(29910,7601); assert(~isempty(v)) assert(v==28891401)

n = 29910 n = 7601

Assertion failed.

54   Fail
v=parenc(59540,36291); assert(~isempty(v)) assert(v==658536486)

n = 59540 n = 36291

Assertion failed.

55   Fail
v=parenc(45871,53970); assert(~isempty(v)) assert(v==1052097256)

n = 45871

Assertion failed.

56   Fail
v=parenc(92763,325); assert(~isempty(v)) assert(v==52975)

n = 92763 n = 325

Assertion failed.

57   Fail
v=parenc(9038,44798); assert(~isempty(v)) assert(v==40847241)

n = 9038

Assertion failed.

58   Fail
v=parenc(1,0); assert(~isempty(v)) assert(v==0)

n = 1 n = 0

Assertion failed.

59   Fail
v=parenc(86549,6287); assert(~isempty(v)) assert(v==19766328)

n = 86549 n = 6287

Assertion failed.

60   Fail
v=parenc(14401,46864); assert(~isempty(v)) assert(v==103701601)

n = 14401

Assertion failed.

61   Fail
v=parenc(93424,6259); assert(~isempty(v)) assert(v==19590670)

n = 93424 n = 6259

Assertion failed.

62   Fail
v=parenc(52933,31692); assert(~isempty(v)) assert(v==502207278)

n = 52933 n = 31692

Assertion failed.

63   Fail
v=parenc(91388,2050); assert(~isempty(v)) assert(v==2102275)

n = 91388 n = 2050

Assertion failed.

64   Fail
v=parenc(83487,14454); assert(~isempty(v)) assert(v==104466285)

n = 83487 n = 14454

Assertion failed.

65   Fail
v=parenc(26996,20778); assert(~isempty(v)) assert(v==215873031)

n = 26996 n = 20778

Assertion failed.

66   Fail
v=parenc(88436,1856); assert(~isempty(v)) assert(v==1723296)

n = 88436 n = 1856

Assertion failed.

67   Fail
v=parenc(52967,22634); assert(~isempty(v)) assert(v==256160295)

n = 52967 n = 22634

Assertion failed.

68   Fail
v=parenc(24373,71635); assert(~isempty(v)) assert(v==297033751)

n = 24373

Assertion failed.

69   Fail
v=parenc(25964,41310); assert(~isempty(v)) assert(v==337077630)

n = 25964

Assertion failed.

70   Fail
v=parenc(89807,7750); assert(~isempty(v)) assert(v==30035125)

n = 89807 n = 7750

Assertion failed.

71   Fail
v=parenc(84029,12987); assert(~isempty(v)) assert(v==84337578)

n = 84029 n = 12987

Assertion failed.

72   Fail
v=parenc(23884,41559); assert(~isempty(v)) assert(v==285234670)

n = 23884

Assertion failed.

73   Fail
v=parenc(96652,1790); assert(~isempty(v)) assert(v==1602945)

n = 96652 n = 1790

Assertion failed.

74   Fail
v=parenc(72470,2981); assert(~isempty(v)) assert(v==4444671)

n = 72470 n = 2981

Assertion failed.

75   Fail
v=parenc(51157,44196); assert(~isempty(v)) assert(v==976665306)

n = 51157 n = 44196

Assertion failed.

76   Fail
v=parenc(5964,125); assert(~isempty(v)) assert(v==7875)

n = 5964 n = 125

Assertion failed.

77   Fail
v=parenc(5011,79606); assert(~isempty(v)) assert(v==12557566)

n = 5011

Assertion failed.

78   Fail
v=parenc(54850,32315); assert(~isempty(v)) assert(v==522145770)

n = 54850 n = 32315

Assertion failed.

79   Fail
v=parenc(94427,666); assert(~isempty(v)) assert(v==222111)

n = 94427 n = 666

Assertion failed.

80   Fail
v=parenc(61766,28774); assert(~isempty(v)) assert(v==413985925)

n = 61766 n = 28774

Assertion failed.

81   Fail
v=parenc(90805,8083); assert(~isempty(v)) assert(v==32671486)

n = 90805 n = 8083

Assertion failed.

82   Fail
v=parenc(50250,34260); assert(~isempty(v)) assert(v==586890930)

n = 50250 n = 34260

Assertion failed.

83   Fail
v=parenc(59514,16501); assert(~isempty(v)) assert(v==136149751)

n = 59514 n = 16501

Assertion failed.

84   Fail
v=parenc(21448,21340); assert(~isempty(v)) assert(v==227708470)

n = 21448 n = 21340

Assertion failed.

85   Fail
v=parenc(48294,20183); assert(~isempty(v)) assert(v==203686836)

n = 48294 n = 20183

Assertion failed.

86   Fail
v=parenc(0,100000); assert(~isempty(v)) assert(v==0)

n = 0

Assertion failed.

87   Fail
v=parenc(0,1); assert(~isempty(v)) assert(v==0)

n = 0

Assertion failed.

88   Fail
v=parenc(9321,9795); assert(~isempty(v)) assert(v==43445181)

n = 9321

Assertion failed.

89   Fail
v=parenc(33373,207); assert(~isempty(v)) assert(v==21528)

n = 33373 n = 207

Assertion failed.

90   Fail
v=parenc(78080,18989); assert(~isempty(v)) assert(v==180300555)

n = 78080 n = 18989

Assertion failed.

91   Fail
v=parenc(89341,7009); assert(~isempty(v)) assert(v==24566545)

n = 89341 n = 7009

Assertion failed.

92   Fail
v=parenc(0,2); assert(~isempty(v)) assert(v==0)

n = 0

Assertion failed.

93   Fail
v=parenc(2,0); assert(~isempty(v)) assert(v==0)

n = 2 n = 0

Assertion failed.

94   Fail
v=parenc(90124,7716); assert(~isempty(v)) assert(v==29772186)

n = 90124 n = 7716

Assertion failed.

95   Fail
v=parenc(36611,12311); assert(~isempty(v)) assert(v==75786516)

n = 36611 n = 12311

Assertion failed.

96   Fail
v=parenc(45498,3564); assert(~isempty(v)) assert(v==6352830)

n = 45498 n = 3564

Assertion failed.

97   Fail
v=parenc(28355,23958); assert(~isempty(v)) assert(v==287004861)

n = 28355 n = 23958

Assertion failed.

98   Fail
v=parenc(58516,24422); assert(~isempty(v)) assert(v==298229253)

n = 58516 n = 24422

Assertion failed.

99   Fail
v=parenc(42157,56858); assert(~isempty(v)) assert(v==888627403)

n = 42157

Assertion failed.

100   Fail
v=parenc(32854,55517); assert(~isempty(v)) assert(v==539709085)

n = 32854

Assertion failed.