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 listApr 24, 2026 10:37Charles CabergsCharles CabergsError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 15:37Haha Expert10.00CustomSolution Broken
Sep 8, 2026 13:04Haha Expert10.00CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 15:37052,106,61140,910,0001,010,00016,384No answer to stdout. Died or killed?
2Apr 24, 2026 10:383,656121,532,019104,032,0002,000,0002,514,944
3Apr 24, 2026 10:383,657122,310,149104,063,0002,001,0002,523,136
4Apr 24, 2026 10:383,659126,260,140104,126,0002,002,0002,510,848
5Apr 24, 2026 10:383,660123,334,766103,143,0003,004,0002,330,624
6Apr 24, 2026 10:383,661126,671,682103,180,0003,005,0002,531,328
7Apr 24, 2026 10:383,664126,061,898104,269,0002,005,0002,510,848
8Apr 24, 2026 10:383,665121,846,209103,290,0003,008,0002,519,040
9Apr 24, 2026 10:383,665122,217,792104,297,0002,005,0002,514,944
10Apr 24, 2026 10:383,671125,288,336104,462,0002,008,0002,510,848