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 26, 2026 17:29TudyMTudyMScore: 31,444Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 17:3031,428928,343,158905,422,0005,996,0002,330,624
2Apr 26, 2026 17:3031,436927,100,758902,675,0008,996,0002,457,600
3Apr 26, 2026 17:3031,438932,803,617903,718,0007,997,0002,338,816
4Apr 26, 2026 17:3031,440928,186,102906,771,0004,998,0002,334,720
5Apr 26, 2026 17:3031,444929,762,764903,889,0007,999,0002,330,624
6Apr 26, 2026 17:3031,448929,793,001905,019,0007,000,0002,330,624
7Apr 26, 2026 17:3031,499931,324,881906,493,0006,996,0002,347,008
8Apr 26, 2026 17:3031,535933,722,453903,532,00010,994,0002,342,912
9Apr 26, 2026 17:3031,549935,221,007908,936,0005,999,0002,347,008