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 14, 2026 02:33Karthik ReddyKarthik ReddyScore: 1,879Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2026 02:341,87763,557,18454,454,000020,480
2Oct 14, 2026 02:341,87863,400,30554,490,000020,480
3Oct 14, 2026 02:341,87863,865,82054,467,000020,480
4Oct 14, 2026 02:341,87863,367,91354,487,000020,480
5Oct 14, 2026 02:341,87963,391,02854,516,000020,480
6Oct 14, 2026 02:341,87963,468,07054,503,000020,480
7Oct 14, 2026 02:341,88063,500,50154,523,000020,480
8Oct 14, 2026 02:341,88163,511,80754,561,000020,480
9Oct 14, 2026 02:341,88463,667,88854,638,000020,480