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 listAug 23, 2026 22:07Andrew EpsteinAndrew EpsteinScore: 4,252Success
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 15:39C#_user113.51CustomSolution Held
Sep 8, 2026 12:57C#_user113.51CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2026 22:124,243133,067,527121,951,0001,109,0002,113,536
2Aug 23, 2026 22:124,250133,233,977122,272,0001,001,0002,113,536
3Aug 23, 2026 22:124,251133,318,716122,299,0001,004,0002,113,536
4Aug 23, 2026 22:124,252133,294,111122,201,0001,120,0002,113,536
5Aug 23, 2026 22:124,252133,312,815122,307,0001,001,0002,113,536
6Aug 23, 2026 22:124,253134,097,592122,329,0001,028,0002,113,536
7Aug 23, 2026 22:124,253134,063,226122,331,0001,021,0002,113,536
8Aug 23, 2026 22:124,254134,041,647122,354,0001,015,0002,113,536
9Aug 23, 2026 22:124,258133,685,087122,463,0001,029,0002,113,536