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 06:01Yuriy LyfenkoYuriy LyfenkoScore: 5,406Success
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 06:015,081494,463,044147,338,950027,439,104
2Oct 11, 2021 06:015,107448,920,545148,089,151027,439,104
3Oct 11, 2021 06:015,144445,243,416149,174,807027,410,432
4Oct 11, 2021 06:015,380363,073,318125,217,00030,807,00033,742,848
5Oct 11, 2021 06:015,389367,095,811125,417,00030,856,00033,693,696
6Oct 11, 2021 06:015,397362,580,612132,350,00024,159,00034,017,280
7Oct 11, 2021 06:015,406345,887,712124,820,00031,954,00034,402,304
8Oct 11, 2021 06:015,411363,112,456131,632,00025,273,00033,271,808
9Oct 11, 2021 06:015,414363,535,999133,500,00023,496,00033,759,232
10Oct 11, 2021 06:015,424358,920,660126,436,00030,862,00033,665,024
11Oct 11, 2021 06:015,454363,793,466127,747,00030,415,00034,537,472
12Oct 11, 2021 06:015,470378,441,985132,375,00026,265,00034,320,384