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 29, 2026 18:16Victor MerckléVictor MerckléScore: 25,434Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 18:1825,292748,128,695719,499,00013,990,0002,445,312stderr
2Apr 29, 2026 18:1825,361753,388,199723,485,00011,991,0002,449,408stderr
3Apr 29, 2026 18:1825,414754,135,791728,008,0009,000,0002,404,352stderr
4Apr 29, 2026 18:1825,415752,162,522727,039,00010,000,0002,367,488stderr
5Apr 29, 2026 18:1825,434761,184,060726,614,00010,994,0002,437,120stderr
6Apr 29, 2026 18:1825,446756,551,791725,962,00011,999,0002,510,848stderr
7Apr 29, 2026 18:1825,458756,134,580726,300,00011,988,0002,445,312stderr
8Apr 29, 2026 18:1825,468758,601,982724,597,00013,992,0002,424,832stderr
9Apr 29, 2026 18:1825,488759,482,419727,182,00011,986,0002,478,080stderr