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 listJan 3, 2026 03:46Josu San MartinJosu San MartinScore: 4,583Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2026 03:464,580157,089,004131,830,000998,0002,285,568
2Jan 3, 2026 03:464,580161,942,504132,829,00002,363,392
3Jan 3, 2026 03:474,581163,673,366130,856,0001,997,0002,351,104
4Jan 3, 2026 03:474,582157,498,870130,888,0001,998,0002,347,008
5Jan 3, 2026 03:464,583160,425,254131,901,000999,0002,338,816
6Jan 3, 2026 03:464,583157,755,897131,908,000999,0002,457,600
7Jan 3, 2026 03:464,583157,395,088130,916,0001,998,0002,461,696
8Jan 3, 2026 03:464,583158,938,911131,919,000999,0002,293,760
9Jan 3, 2026 03:474,583157,738,319131,917,000999,0002,338,816
10Jan 3, 2026 03:464,585158,624,326131,953,000999,0002,347,008
11Jan 3, 2026 03:464,585164,411,014131,972,000999,0002,293,760
12Jan 3, 2026 03:464,589154,711,230131,066,0002,001,0002,289,664