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 listJun 1, 2023 22:54Martin StensgårdMartin StensgårdScore: 7,109Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 1, 2023 22:537,058529,774,609204,670,989027,459,584
2Jun 1, 2023 22:547,094507,877,056205,714,837027,361,280
3Jun 1, 2023 22:537,095536,694,563205,752,896027,467,776
4Jun 1, 2023 22:547,109537,120,956206,158,031027,467,776
5Jun 1, 2023 22:537,148561,224,498207,301,636027,467,776
6Jun 1, 2023 22:547,164534,537,557207,763,321027,471,872