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 16:29Yuriy LyfenkoYuriy LyfenkoScore: 5,656Success
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 16:295,420513,552,664157,167,394027,439,104
2Sep 22, 2021 16:295,460474,468,672158,353,402027,447,296
3Sep 22, 2021 16:295,491467,412,348159,241,919027,451,392
4Sep 22, 2021 16:295,654379,941,479136,991,00026,983,00034,304,000
5Sep 22, 2021 16:295,654368,043,641138,034,00025,946,00034,017,280
6Sep 22, 2021 16:295,655370,547,460137,185,00026,818,00034,091,008
7Sep 22, 2021 16:295,656371,099,544130,622,00033,392,00034,004,992
8Sep 22, 2021 16:295,675378,098,961140,466,00024,109,00033,988,608
9Sep 22, 2021 16:295,683373,443,977134,479,00030,333,00034,013,184
10Sep 22, 2021 16:295,685366,750,973138,784,00026,087,00033,984,512
11Sep 22, 2021 16:295,696382,433,137133,337,00031,841,00034,054,144
12Sep 22, 2021 16:295,713388,601,574134,364,00031,318,00034,058,240