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 listDec 30, 2025 00:40Josu San MartinJosu San MartinScore: 8,274Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2025 00:408,255268,783,578239,385,00002,355,200
2Dec 30, 2025 00:408,260269,084,905239,528,00002,351,104
3Dec 30, 2025 00:408,268266,585,520237,786,0001,998,0002,285,568
4Dec 30, 2025 00:408,273272,824,974237,917,0001,999,0002,285,568
5Dec 30, 2025 00:408,274266,183,530237,939,0001,999,0002,351,104
6Dec 30, 2025 00:408,280270,800,818239,130,0001,000,0002,338,816
7Dec 30, 2025 00:408,282262,436,512238,169,0002,001,0002,342,912
8Dec 30, 2025 00:408,282263,092,415240,180,00002,285,568
9Dec 30, 2025 00:408,284266,478,814239,231,0001,000,0002,285,568