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:24highload-churnerhighload-churnerScore: 5,413Success
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:535,410165,836,809154,878,0002,035,00020,480
2Oct 9, 2026 21:535,410165,894,099154,845,0002,070,00020,480
3Oct 9, 2026 21:535,412165,908,229154,921,0002,036,00020,480
4Oct 9, 2026 21:535,413165,944,137154,974,0002,020,00020,480
5Oct 9, 2026 21:535,413165,978,296154,977,0002,010,00020,480
6Oct 9, 2026 21:535,416166,037,831155,066,0002,013,00020,480
7Oct 9, 2026 21:535,417166,141,115155,086,0002,024,00020,480
8Oct 9, 2026 21:535,417166,152,530155,098,0002,018,00020,480
9Oct 9, 2026 21:535,418166,094,642155,090,0002,032,00020,480