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 listSep 22, 2021 13:05Yuriy LyfenkoYuriy LyfenkoScore: 6,205Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 13:055,696502,672,681165,174,851027,467,776
2Sep 22, 2021 13:055,727443,774,116166,086,581027,455,488
3Sep 22, 2021 13:055,756466,497,064166,929,610027,455,488
4Sep 22, 2021 13:056,185388,207,928151,682,00027,671,00033,325,056
5Sep 22, 2021 13:056,196391,390,042145,935,00033,753,00033,910,784
6Sep 22, 2021 13:056,197367,396,291148,597,00031,125,00033,718,272
7Sep 22, 2021 13:056,205368,194,230147,142,00032,808,00033,697,792
8Sep 22, 2021 13:056,208384,065,198155,061,00024,976,00034,164,736
9Sep 22, 2021 13:056,214387,674,647148,174,00032,037,00034,111,488
10Sep 22, 2021 13:056,215392,466,477157,828,00022,394,00034,742,272
11Sep 22, 2021 13:056,234397,191,927151,328,00029,453,00033,943,552
12Sep 22, 2021 13:056,240401,316,384149,613,00031,337,00035,213,312