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:51Victor MerckléVictor MerckléScore: 3,072Success
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:523,06695,684,68587,905,0001,027,0002,453,504
2May 5, 2026 05:523,06696,054,34687,904,0001,020,0002,441,216
3May 5, 2026 05:523,07097,203,00988,018,0001,019,0002,449,408
4May 5, 2026 05:523,07195,699,99988,045,0001,019,0002,449,408
5May 5, 2026 05:523,07295,563,25689,110,00002,449,408
6May 5, 2026 05:523,07995,619,62489,300,00002,449,408
7May 5, 2026 05:523,08196,009,29289,372,00002,461,696
8May 5, 2026 05:523,08196,472,25288,329,0001,029,0002,445,312
9May 5, 2026 05:523,08696,360,09889,521,00002,449,408