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:08Yuriy LyfenkoYuriy LyfenkoScore: 5,442Success
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:085,139502,829,404149,038,379027,443,200
2Oct 11, 2021 06:085,162442,028,226149,693,207027,439,104
3Oct 11, 2021 06:085,183464,307,092150,318,426027,439,104
4Oct 11, 2021 06:085,418347,061,343128,548,00028,566,00033,632,256
5Oct 11, 2021 06:085,422368,272,060129,484,00027,746,00033,665,024
6Oct 11, 2021 06:085,425361,240,532130,579,00026,732,00033,742,848
7Oct 11, 2021 06:085,442351,823,530122,430,00035,390,00034,000,896
8Oct 11, 2021 06:085,444371,547,183133,679,00024,209,00033,853,440
9Oct 11, 2021 06:085,448373,191,286128,623,00029,370,00034,025,472
10Oct 11, 2021 06:085,462373,084,575128,955,00029,446,00034,156,544
11Oct 11, 2021 06:085,477375,670,864131,839,00026,990,00034,029,568
12Oct 11, 2021 06:085,480369,539,319133,500,00025,428,00035,164,160