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 listApr 30, 2026 21:39olliecrowolliecrowScore: 3,683Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 21:393,681118,417,521104,765,0001,995,0002,469,888
2Apr 30, 2026 21:393,682125,348,645104,798,0001,996,0002,469,888
3Apr 30, 2026 21:393,683123,863,243104,815,0001,996,0002,469,888
4Apr 30, 2026 21:393,683122,301,076104,835,0001,996,0002,469,888
5Apr 30, 2026 21:393,683124,493,805106,827,00002,478,080
6Apr 30, 2026 21:393,683126,859,022104,823,0001,996,0002,469,888
7Apr 30, 2026 21:393,685122,457,693104,874,0001,997,0002,482,176
8Apr 30, 2026 21:393,685121,947,901104,879,0001,997,0002,473,984
9Apr 30, 2026 21:393,690124,622,446107,016,00002,473,984