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 listApr 29, 2026 19:32Victor MerckléVictor MerckléScore: 25,411Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 19:3925,336756,802,453724,756,0009,996,0002,412,544stderr
2Apr 29, 2026 19:3925,359753,708,283726,428,0008,992,0002,457,600stderr
3Apr 29, 2026 19:3925,379751,189,801726,994,0008,999,0002,375,680stderr
4Apr 29, 2026 19:3925,399751,335,564725,582,00010,993,0002,523,136stderr
5Apr 29, 2026 19:3925,411753,631,309730,923,0005,999,0002,420,736stderr
6Apr 29, 2026 19:3925,418755,099,156723,157,00013,983,0002,347,008stderr
7Apr 29, 2026 19:3925,428757,101,413727,440,0009,992,0002,310,144stderr
8Apr 29, 2026 19:3925,431759,233,925729,520,0007,994,0002,371,584stderr
9Apr 29, 2026 19:3925,461754,477,524728,385,0009,991,0002,416,640stderr