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 21, 2026 13:24A_ShamanA_ShamanScore: 7,590Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 13:247,568229,147,118196,561,00022,928,0002,117,632
2Jun 21, 2026 13:247,582229,624,285196,088,00023,790,0002,117,632
3Jun 21, 2026 13:247,585229,777,654196,031,00023,943,0002,117,632
4Jun 21, 2026 13:247,585229,266,670196,019,00023,967,0002,117,632
5Jun 21, 2026 13:247,590229,745,096196,463,00023,666,0002,117,632
6Jun 21, 2026 13:247,592229,856,675196,871,00023,316,0002,117,632
7Jun 21, 2026 13:247,595229,614,647196,380,00023,898,0002,117,632
8Jun 21, 2026 13:247,603229,698,053196,660,00023,831,0002,117,632
9Jun 21, 2026 13:247,609230,364,504197,206,00023,470,0002,117,632