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:54Yuriy LyfenkoYuriy LyfenkoScore: 5,593Success
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:545,247434,387,720152,167,620027,439,104
2Oct 11, 2021 04:545,284468,815,433153,224,694027,435,008
3Oct 11, 2021 04:545,289424,549,879153,392,195027,439,104
4Oct 11, 2021 04:545,544347,666,308132,281,00028,491,00033,632,256
5Oct 11, 2021 04:545,566372,672,237138,204,00023,209,00033,497,088
6Oct 11, 2021 04:545,581367,945,770134,203,00027,660,00033,718,272
7Oct 11, 2021 04:545,593374,014,073137,652,00024,542,00033,599,488
8Oct 11, 2021 04:545,600351,897,026133,969,00028,417,00034,205,696
9Oct 11, 2021 04:545,630381,062,436138,717,00024,542,00034,025,472
10Oct 11, 2021 04:545,644387,301,277126,866,00036,800,00036,384,768
11Oct 11, 2021 04:545,752415,633,813131,640,00035,171,00039,751,680
12Oct 11, 2021 04:545,809431,735,242122,610,00045,861,00042,700,800