Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listMay 26, 2023 23:18Martin StensgårdMartin StensgårdScore: 6,607Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 26, 2023 23:186,283522,464,020182,203,843027,443,200
2May 26, 2023 23:186,293536,639,161182,486,529027,455,488
3May 26, 2023 23:186,294513,320,642182,521,314027,439,104
4May 25, 2023 00:556,310483,636,620183,004,416027,439,104
5May 25, 2023 00:476,325636,709,184183,429,777027,459,584
6May 25, 2023 00:556,355502,080,047184,287,764027,451,392
7May 25, 2023 00:476,387522,564,748185,211,831027,443,200
8May 25, 2023 00:556,408544,353,817185,829,707027,451,392
9May 25, 2023 00:476,412483,532,539185,936,000027,439,104
10May 25, 2023 00:476,576403,270,782166,741,00023,969,00033,402,880
11May 25, 2023 00:476,589402,611,322153,455,00037,640,00033,746,944
12May 25, 2023 00:476,589396,495,598160,748,00030,329,00033,632,256
13May 25, 2023 00:476,591379,535,483151,189,00039,936,00033,628,160
14May 25, 2023 00:556,592393,700,966163,577,00027,603,00033,943,552
15May 25, 2023 00:476,594407,981,687159,182,00032,036,00033,976,320
16May 25, 2023 00:476,596400,401,688158,408,00032,877,00033,841,152
17May 25, 2023 00:556,600401,046,285157,039,00034,352,00033,828,864
18May 25, 2023 00:556,602403,455,196157,094,00034,364,00033,648,640
19May 25, 2023 00:556,607394,402,689163,078,00028,538,00033,976,320
20May 25, 2023 00:556,609407,730,418165,010,00026,647,00033,812,480
21May 25, 2023 00:556,619405,793,866166,921,00025,038,00033,628,160
22May 25, 2023 00:556,626390,325,872159,967,00032,194,00034,107,392
23May 25, 2023 00:476,634393,456,377164,462,00027,927,00033,796,096
24May 25, 2023 00:476,634385,502,607163,884,00028,501,00033,947,648
25May 25, 2023 00:476,640389,432,000157,364,00035,187,00033,435,648
26May 25, 2023 00:556,647402,763,321163,352,00029,423,00034,156,544
27May 26, 2023 23:186,683394,919,730164,390,00029,427,00033,710,080
28May 26, 2023 23:186,685397,349,023166,316,00027,549,00033,583,104
29May 26, 2023 23:186,690390,709,648163,852,00030,156,00033,841,152
30May 25, 2023 00:556,692404,486,078165,323,00028,751,00034,238,464
31May 26, 2023 23:186,697399,866,467159,718,00034,507,00033,701,888
32May 26, 2023 23:186,701390,206,476162,609,00031,728,00034,217,984
33May 26, 2023 23:186,705398,284,646161,528,00032,903,00033,574,912
34May 26, 2023 23:186,710393,910,212167,086,00027,508,00034,254,848
35May 26, 2023 23:186,720404,541,872169,727,00025,144,00033,759,232
36May 26, 2023 23:186,743397,832,825165,473,00030,086,00033,681,408