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 16, 2026 05:10highload-churnerhighload-churnerScore: 3,896Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2026 05:113,888121,759,891110,764,0002,015,00020,480
2Oct 16, 2026 05:113,890121,832,919110,822,0002,011,00020,480
3Oct 16, 2026 05:113,892123,474,566110,858,0002,021,00020,480
4Oct 16, 2026 05:113,895122,015,862110,928,0002,033,00020,480
5Oct 16, 2026 05:113,896123,020,245110,981,0002,024,00020,480
6Oct 16, 2026 05:113,897122,101,655111,015,0002,018,00020,480
7Oct 16, 2026 05:113,900122,201,877111,065,0002,043,00020,480
8Oct 16, 2026 05:113,900122,153,393111,054,0002,051,00020,480
9Oct 16, 2026 05:113,901122,243,563111,103,0002,052,00020,480