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:37Josu San MartinJosu San MartinScore: 9,267Success
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:379,234299,759,579245,805,00021,982,0002,277,376
2Dec 30, 2025 00:379,256293,875,791245,383,00023,036,0002,285,568
3Dec 30, 2025 00:379,258298,970,025246,456,00022,040,0002,293,760
4Dec 30, 2025 00:379,259296,819,085245,479,00023,045,0002,285,568
5Dec 30, 2025 00:379,267301,682,593244,760,00023,976,0002,269,184
6Dec 30, 2025 00:379,269293,198,395244,825,00023,982,0002,387,968
7Dec 30, 2025 00:379,281298,593,582246,128,00023,012,0002,289,664
8Dec 30, 2025 00:379,291298,844,778247,395,00022,035,0002,289,664
9Dec 30, 2025 00:379,297297,439,151246,564,00023,052,0002,379,776