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 listDec 27, 2024 02:43Joad NacerJoad NacerScore: 6,217Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2024 02:436,209200,646,514179,062,0001,000,0002,281,472
2Dec 27, 2024 02:436,216211,520,190179,254,0001,001,0002,281,472
3Dec 27, 2024 02:436,216204,956,200179,273,0001,001,0002,535,424
4Dec 27, 2024 02:436,217202,950,644178,280,0002,003,0002,281,472
5Dec 27, 2024 02:436,217202,624,939178,285,0002,003,0002,281,472
6Dec 27, 2024 02:436,217203,274,863179,296,0001,001,0002,433,024
7Dec 27, 2024 02:436,218204,892,484179,333,0001,001,0002,281,472
8Dec 27, 2024 02:436,221201,997,327178,408,0002,004,0002,535,424
9Dec 27, 2024 02:436,221202,804,639179,411,0001,002,0002,424,832