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 listOct 9, 2026 21:19highload-churnerhighload-churnerScore: 4,607Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 21:334,576141,678,772130,710,0002,018,00020,480
2Oct 9, 2026 21:334,578141,761,229130,735,0002,044,00020,480
3Oct 9, 2026 21:334,578142,053,938130,719,0002,053,00020,480
4Oct 9, 2026 21:334,580141,738,339130,813,0002,018,00020,480
5Oct 9, 2026 21:334,607142,554,387131,562,0002,043,00020,480
6Oct 9, 2026 21:334,608142,674,688131,621,0002,037,00020,480
7Oct 9, 2026 21:334,609142,690,775131,644,0002,045,00020,480
8Oct 9, 2026 21:334,609142,643,024131,640,0002,043,00020,480
9Oct 9, 2026 21:334,609142,650,415131,619,0002,048,00020,480