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:00Yuriy LyfenkoYuriy LyfenkoScore: 5,623Success
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:005,267406,221,886152,734,748027,439,104
2Oct 11, 2021 06:005,272439,544,591152,898,465027,443,200
3Oct 11, 2021 06:005,277429,289,817153,026,250027,435,008
4Oct 11, 2021 06:005,607369,742,099129,684,00032,905,00033,751,040
5Oct 11, 2021 06:005,615368,079,283135,526,00027,307,00033,665,024
6Oct 11, 2021 06:005,617372,048,871133,558,00029,342,00033,624,064
7Oct 11, 2021 06:005,623370,899,852131,446,00031,626,00034,025,472
8Oct 11, 2021 06:005,628360,495,775130,760,00032,444,00033,763,328
9Oct 11, 2021 06:005,632361,037,825132,444,00030,870,00033,501,184
10Oct 11, 2021 06:005,635366,775,089132,517,00030,887,00034,127,872
11Oct 11, 2021 06:005,652348,430,524132,923,00030,982,00033,861,632
12Oct 11, 2021 06:005,666382,168,314134,067,00030,240,00033,800,192