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 22, 2026 01:18A_ShamanA_ShamanScore: 9,746Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 01:199,736291,933,886257,974,00024,370,0002,117,632
2Jun 22, 2026 01:199,740291,781,851258,064,00024,398,0002,117,632
3Jun 22, 2026 01:199,741291,877,576258,022,00024,478,0002,117,632
4Jun 22, 2026 01:199,742291,771,196258,187,00024,337,0002,117,632
5Jun 22, 2026 01:199,746292,340,105258,347,00024,304,0002,117,632
6Jun 22, 2026 01:199,747292,365,770259,046,00023,636,0002,117,632
7Jun 22, 2026 01:199,751292,477,020258,436,00024,343,0002,117,632
8Jun 22, 2026 01:199,757292,272,106258,428,00024,553,0002,113,536
9Jun 22, 2026 01:199,771293,075,604259,020,00024,363,0002,117,632