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 31, 2026 00:53Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 13:03C#_user39.74CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 13:06020,270,13102,682,00016,384No answer to stdout. Died or killed?
2Aug 31, 2026 01:052,16070,905,36761,021,0001,633,00020,480
3Aug 31, 2026 01:052,16070,942,42261,011,0001,646,00020,480
4Aug 31, 2026 01:052,16070,970,05461,006,0001,643,00020,480
5Aug 31, 2026 01:052,16070,956,35960,193,0002,475,00020,480
6Aug 31, 2026 01:052,16171,094,98761,031,0001,657,00020,480
7Aug 31, 2026 01:052,16170,874,48461,024,0001,656,00020,480
8Aug 31, 2026 01:052,16170,960,65561,043,0001,641,00020,480
9Aug 31, 2026 01:052,16170,986,19561,023,0001,649,00020,480
10Aug 31, 2026 01:052,16671,098,12360,210,0002,613,00020,480