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 listMay 5, 2026 05:11Victor MerckléVictor MerckléScore: 3,179Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 05:123,177109,393,07692,159,00002,449,408
2May 5, 2026 05:123,177106,612,20692,136,00002,457,600
3May 5, 2026 05:123,179106,491,21992,206,00002,453,504
4May 5, 2026 05:123,179109,561,39792,214,00002,457,600
5May 5, 2026 05:123,179105,483,64392,192,00002,441,216
6May 5, 2026 05:123,179106,516,14092,207,00002,445,312
7May 5, 2026 05:123,180107,741,35592,242,00002,453,504
8May 5, 2026 05:123,182106,118,35892,281,00002,441,216
9May 5, 2026 05:123,182104,706,47092,289,00002,445,312