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 listMay 27, 2023 21:26Martin StensgårdMartin StensgårdScore: 6,773Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2023 21:266,402506,661,863185,665,773027,443,200
2May 27, 2023 21:266,460518,368,813187,346,779027,439,104
3May 27, 2023 21:266,529531,385,890189,352,812027,439,104
4May 27, 2023 21:266,736399,118,101161,807,00033,545,00034,013,184
5May 27, 2023 21:266,766400,389,873168,471,00027,736,00034,246,656
6May 27, 2023 21:266,768405,423,784163,385,00032,876,00033,751,040
7May 27, 2023 21:266,773408,002,762171,353,00025,076,00033,918,976
8May 27, 2023 21:266,778391,424,541167,037,00029,537,00033,906,688
9May 27, 2023 21:266,781405,734,718169,890,00026,770,00033,996,800
10May 27, 2023 21:266,789411,341,815164,569,00032,308,00034,828,288
11May 27, 2023 21:266,807405,160,162165,327,00032,063,00034,000,896
12May 27, 2023 21:266,830386,629,073172,271,00025,789,00034,066,432