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 listDec 31, 2023 16:52Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2023 16:5400000Error: No answer to stdout. Died or killed?
2Dec 31, 2023 16:525,019359,700,781145,545,600027,443,200
3Dec 31, 2023 16:525,020368,562,915145,585,080027,426,816
4Dec 31, 2023 16:525,031361,478,748145,887,079027,439,104
5Dec 31, 2023 16:525,493368,894,661135,345,00023,945,00033,759,232
6Dec 31, 2023 16:525,496356,971,630126,920,00032,468,00034,054,144
7Dec 31, 2023 16:525,507372,248,643132,069,00027,642,00034,934,784
8Dec 31, 2023 16:525,512372,263,802126,299,00033,548,00034,238,464
9Dec 31, 2023 16:525,514369,800,243131,201,00028,700,00034,009,088
10Dec 31, 2023 16:525,516372,253,483129,787,00030,183,00034,058,240
11Dec 31, 2023 16:525,520376,915,457137,668,00022,411,00033,677,312
12Dec 31, 2023 16:525,520362,911,152128,075,00032,018,00033,787,904
13Dec 31, 2023 16:525,534359,182,191132,710,00027,776,00034,250,752