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 21, 2026 09:27olliecrowolliecrowScore: 3,684Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 09:273,677131,486,263105,640,0001,006,0002,453,504
2Apr 21, 2026 09:273,682131,452,012105,783,000997,0002,457,600
3Apr 21, 2026 09:273,683128,512,240104,829,0001,996,0002,457,600
4Apr 21, 2026 09:273,683129,578,669105,827,000998,0002,490,368
5Apr 21, 2026 09:273,684131,535,385105,842,000998,0002,490,368
6Apr 21, 2026 09:273,703118,621,906106,384,0001,003,0002,256,896
7Apr 21, 2026 09:273,704119,500,136106,429,0001,004,0002,273,280
8Apr 21, 2026 09:273,704118,522,655106,433,0001,004,0002,273,280
9Apr 21, 2026 09:273,707118,638,714106,501,0001,004,0002,256,896