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 listJun 12, 2026 15:53Victor MerckléVictor MerckléScore: 3,046Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2026 15:573,04097,194,87186,985,0001,201,0002,134,016
2Jun 12, 2026 15:573,04197,156,59486,989,0001,224,0002,129,920
3Jun 12, 2026 15:573,04197,232,95486,997,0001,213,0002,129,920
4Jun 12, 2026 15:573,04397,322,65286,986,0001,283,0002,174,976
5Jun 12, 2026 15:573,04697,471,32487,319,0001,019,0002,134,016
6Jun 12, 2026 15:573,04697,441,50287,328,0001,018,0002,129,920
7Jun 12, 2026 15:573,04797,507,96187,350,0001,020,0002,134,016
8Jun 12, 2026 15:573,04797,316,63287,358,0001,018,0002,129,920
9Jun 12, 2026 15:573,04897,414,46387,373,0001,021,0002,129,920