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 20, 2026 16:28BenBenScore: 7,114Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 16:297,029230,706,013191,865,00011,991,0002,396,160
2Apr 20, 2026 16:297,056233,039,695199,642,0004,991,0002,404,352
3Apr 20, 2026 16:297,061233,525,971199,791,0004,994,0002,387,968
4Apr 20, 2026 16:297,064231,504,723194,887,0009,994,0002,404,352
5Apr 20, 2026 16:297,114225,681,882198,313,0008,012,0002,420,736
6Apr 20, 2026 16:297,117227,148,938199,404,0007,014,0002,400,256
7Apr 20, 2026 16:297,130238,547,344199,801,0006,993,0002,400,256
8Apr 20, 2026 16:297,172235,600,380199,995,0007,999,0002,404,352
9Apr 20, 2026 16:297,175235,655,893200,073,0008,002,0002,396,160