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 29, 2026 20:23A_ShamanA_ShamanScore: 7,171Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 20:237,145216,473,206188,447,00018,783,0002,113,536
2Jun 29, 2026 20:237,162217,051,000188,733,00018,980,0002,113,536
3Jun 29, 2026 20:237,169218,037,572188,971,00018,958,0002,113,536
4Jun 29, 2026 20:237,169217,230,030188,759,00019,160,0002,113,536
5Jun 29, 2026 20:237,171217,299,035189,098,00018,879,0002,113,536
6Jun 29, 2026 20:237,182217,609,278189,239,00019,057,0002,113,536
7Jun 29, 2026 20:237,191217,766,598189,639,00018,915,0002,113,536
8Jun 29, 2026 20:237,199218,032,340188,980,00019,793,0002,113,536
9Jun 29, 2026 20:237,205218,308,600189,035,00019,937,0002,113,536