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,411Success
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,342295,183,417248,916,00021,992,0002,265,088
2Dec 30, 2025 00:379,364298,447,366248,517,00023,048,0002,297,856
3Dec 30, 2025 00:379,395301,330,997249,427,00023,039,0002,277,376
4Dec 30, 2025 00:379,399302,501,096250,534,00022,047,0002,289,664
5Dec 30, 2025 00:379,411300,636,335250,931,00021,994,0002,506,752
6Dec 30, 2025 00:379,415299,190,700249,043,00024,004,0002,387,968
7Dec 30, 2025 00:379,421300,633,214250,188,00023,017,0002,273,280
8Dec 30, 2025 00:379,428298,240,533250,366,00023,033,0002,461,696
9Dec 30, 2025 00:379,448299,411,429251,980,00021,998,0002,269,184