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 listMay 27, 2025 15:10Aniruddha DebAniruddha DebError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 09:26C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:28030,146,758,6912,860,219,0005,173,711,00036,864Killed by timeout
2May 27, 2025 15:106,867221,323,240199,154,00002,539,520
3May 27, 2025 15:106,869220,514,570198,212,0001,001,0002,424,832
4May 27, 2025 15:106,889227,206,577198,797,000998,0002,531,328
5May 27, 2025 15:106,900223,124,876200,089,00002,437,120
6May 27, 2025 15:106,932222,164,454201,033,00002,539,520
7May 27, 2025 15:106,933228,859,426201,058,00002,269,184
8May 27, 2025 15:106,933226,578,490201,068,00002,269,184
9May 27, 2025 15:106,947225,482,962200,467,000997,0002,424,832
10May 27, 2025 15:106,948221,994,523201,482,00002,269,184