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 04:50Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 09:18C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:20047,720,38038,081,0001,160,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 09:20047,850,97238,113,0001,173,0002,121,728line 5: expected -10 got 0
3Sep 9, 2026 09:20047,781,04738,096,0001,156,0002,117,632line 5: expected -10 got 0
4Jan 3, 2026 04:503,825132,183,987109,932,000999,0002,535,424
5Jan 3, 2026 04:503,826134,830,935109,962,000999,0002,416,640
6Jan 3, 2026 04:503,834134,453,663110,191,0001,001,0002,424,832