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 listOct 11, 2021 04:44Yuriy LyfenkoYuriy LyfenkoScore: 5,564Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 04:455,237474,996,677151,868,260027,443,200
2Oct 11, 2021 04:445,238469,541,071151,909,487027,443,200
3Oct 11, 2021 04:445,239423,907,447151,937,475027,443,200
4Oct 11, 2021 04:455,287455,486,008153,325,927027,443,200
5Oct 11, 2021 04:455,287429,269,944153,331,501027,439,104
6Oct 11, 2021 04:445,321528,670,123154,318,946027,435,008
7Oct 11, 2021 04:445,546372,929,425137,565,00023,280,00033,398,784
8Oct 11, 2021 04:455,547361,898,280135,949,00024,906,00034,021,376
9Oct 11, 2021 04:455,554348,667,015133,374,00027,700,00033,529,856
10Oct 11, 2021 04:445,557366,563,676131,585,00029,581,00034,304,000
11Oct 11, 2021 04:455,559361,885,768136,241,00024,960,00033,533,952
12Oct 11, 2021 04:455,561356,602,395138,086,00023,190,00033,492,992
13Oct 11, 2021 04:455,564368,720,197139,057,00022,291,00033,648,640
14Oct 11, 2021 04:445,571354,682,332127,284,00034,268,00033,488,896
15Oct 11, 2021 04:445,576359,010,425132,385,00029,306,00034,004,992
16Oct 11, 2021 04:445,578386,371,507128,627,00033,131,00033,755,136
17Oct 11, 2021 04:455,585373,801,392131,589,00030,366,00033,497,088
18Oct 11, 2021 04:455,592366,098,498132,769,00029,391,00033,796,096
19Oct 11, 2021 04:445,596377,758,654132,865,00029,412,00034,418,688
20Oct 11, 2021 04:455,599377,118,167132,754,00029,614,00034,025,472
21Oct 11, 2021 04:445,601378,244,918144,875,00017,560,00033,890,304
22Oct 11, 2021 04:455,611366,649,112133,885,00028,836,00033,796,096
23Oct 11, 2021 04:445,612358,932,343136,825,00025,913,00035,336,192
24Oct 11, 2021 04:445,615356,704,727141,261,00021,566,00033,751,040