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:49Yuriy LyfenkoYuriy LyfenkoScore: 5,518Success
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:495,335439,581,584154,709,614027,406,336
2Oct 11, 2021 04:495,345476,172,657155,003,762027,439,104
3Oct 11, 2021 04:495,405457,972,496156,741,909027,439,104
4Oct 11, 2021 04:495,491363,370,285131,508,00027,740,00033,955,840
5Oct 11, 2021 04:495,507364,234,929127,958,00031,741,00034,131,968
6Oct 11, 2021 04:495,512368,991,551132,349,00027,487,00033,722,368
7Oct 11, 2021 04:495,518373,386,485128,220,00031,806,00033,464,320
8Oct 11, 2021 04:495,519369,189,287134,778,00025,270,00033,632,256
9Oct 11, 2021 04:495,534349,514,102128,585,00031,897,00033,505,280
10Oct 11, 2021 04:495,543377,627,666137,164,00023,575,00033,746,944
11Oct 11, 2021 04:495,548354,826,022136,542,00024,344,00034,275,328
12Oct 11, 2021 04:495,551348,402,368135,739,00025,253,00033,759,232