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 18, 2026 12:01Charles CabergsCharles CabergsScore: 6,183Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 12:016,174205,768,448177,053,0002,000,0002,457,600
2Apr 18, 2026 12:016,176203,707,223177,116,0002,001,0002,281,472
3Apr 18, 2026 12:016,177203,308,735177,127,0002,001,0002,461,696
4Apr 18, 2026 12:016,182212,797,460177,283,0001,991,0002,281,472
5Apr 18, 2026 12:016,183201,615,818178,303,0001,001,0002,281,472
6Apr 18, 2026 12:016,183205,100,168178,305,0001,001,0002,281,472
7Apr 18, 2026 12:016,185203,638,796178,364,0001,002,0002,457,600
8Apr 18, 2026 12:016,186202,969,067178,392,0001,002,0002,281,472
9Apr 18, 2026 12:016,200205,971,744177,816,0001,997,0002,281,472