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 22, 2022 22:21Kenneth MaplesKenneth MaplesScore: 5,695Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 22, 2022 22:215,184351,668,044150,350,263027,451,392
2Oct 22, 2022 22:215,207450,423,917150,991,550027,455,488
3Oct 22, 2022 22:215,233436,605,871151,758,665027,459,584
4Oct 22, 2022 22:215,653358,342,868125,798,00038,152,00033,767,424
5Oct 22, 2022 22:215,682384,199,347135,604,00029,162,00034,230,272
6Oct 22, 2022 22:215,691355,526,887141,202,00023,839,00033,832,960
7Oct 22, 2022 22:215,695365,568,834131,075,00034,079,00034,017,280
8Oct 22, 2022 22:215,695401,407,215117,333,00047,835,00034,115,584
9Oct 22, 2022 22:215,697388,836,357130,790,00034,418,00034,037,760
10Oct 22, 2022 22:215,697393,681,203135,316,00029,911,00033,812,480
11Oct 22, 2022 22:215,698387,981,762129,547,00035,691,00033,976,320
12Oct 22, 2022 22:215,711390,326,281129,531,00036,098,00034,099,200