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 14:56highload-churnerhighload-churnerScore: 4,483Success
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 15:074,477138,831,838127,807,0002,038,00020,480
2Oct 9, 2026 15:074,482140,026,155127,971,0002,013,00020,480
3Oct 9, 2026 15:074,482138,978,970127,973,0002,021,00020,480
4Oct 9, 2026 15:074,482140,060,613127,948,0002,052,00020,480
5Oct 9, 2026 15:074,483139,047,000127,968,0002,040,00020,480
6Oct 9, 2026 15:074,484139,127,237128,020,0002,039,00020,480
7Oct 9, 2026 15:074,485139,023,809128,066,0002,023,00020,480
8Oct 9, 2026 15:074,485139,035,206128,051,0002,038,00020,480
9Oct 9, 2026 15:074,486139,109,511128,056,0002,043,00020,480