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, 2022 16:11Kenneth MaplesKenneth MaplesScore: 5,735Success
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, 2022 16:115,272417,000,224152,891,909027,455,488
2Oct 11, 2022 16:115,288422,741,346153,349,277027,467,776
3Oct 11, 2022 16:115,311423,966,604154,029,861027,451,392
4Oct 11, 2022 16:115,722369,117,885143,619,00022,309,00033,980,416
5Oct 11, 2022 16:115,722376,200,062124,450,00041,483,00033,792,000
6Oct 11, 2022 16:115,730388,843,185137,470,00028,689,00033,456,128
7Oct 11, 2022 16:115,735360,358,313124,739,00041,579,00033,898,496
8Oct 11, 2022 16:115,775388,173,537118,774,00048,697,00033,722,368
9Oct 11, 2022 16:115,779389,965,508123,176,00044,424,00034,267,136
10Oct 11, 2022 16:115,781379,087,379130,284,00037,368,00034,779,136
11Oct 11, 2022 16:115,798393,384,053126,999,00041,157,00034,164,736
12Oct 11, 2022 16:115,822393,072,135128,751,00040,083,00034,410,496