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 00:37A_ShamanA_ShamanScore: 6,188Success
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 00:376,167188,504,675155,474,00023,387,0002,117,632
2Jun 21, 2026 00:376,172188,260,929155,670,00023,344,0002,113,536
3Jun 21, 2026 00:376,184188,588,307155,498,00023,860,0002,117,632
4Jun 21, 2026 00:376,186189,170,938155,421,00023,980,0002,117,632
5Jun 21, 2026 00:376,188188,717,197155,594,00023,878,0002,113,536
6Jun 21, 2026 00:376,194190,172,928155,615,00024,037,0002,117,632
7Jun 21, 2026 00:376,195188,888,624155,791,00023,874,0002,117,632
8Jun 21, 2026 00:376,200189,191,518155,611,00024,213,0002,117,632
9Jun 21, 2026 00:376,221189,692,725156,006,00024,415,0002,117,632