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 19:25Victor MerckléVictor MerckléScore: 25,311Success
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 19:3025,270752,304,891724,848,0007,998,0002,408,448stderr
2Apr 29, 2026 19:3025,273753,176,426724,933,0007,999,0002,379,776stderr
3Apr 29, 2026 19:3025,300754,502,382720,728,00012,995,0002,469,888stderr
4Apr 29, 2026 19:3025,310752,465,485723,027,00010,985,0002,404,352stderr
5Apr 29, 2026 19:3025,311752,483,297726,028,0008,000,0002,433,024stderr
6Apr 29, 2026 19:3025,325752,533,730723,434,00010,991,0002,404,352stderr
7Apr 29, 2026 19:3025,331756,615,350719,617,00014,992,0002,379,776stderr
8Apr 29, 2026 19:3025,357754,598,771723,365,00011,989,0002,371,584stderr
9Apr 29, 2026 19:3025,400755,785,597729,605,0006,996,0002,392,064stderr