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 listMay 3, 2026 19:41TudyMTudyMScore: 4,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 19:434,713154,027,693135,622,0001,062,0002,363,392
2May 3, 2026 19:434,713154,736,279135,688,0001,013,0002,367,488
3May 3, 2026 19:434,714153,689,496135,625,0001,088,0002,371,584
4May 3, 2026 19:434,714154,922,027135,647,0001,071,0002,355,200
5May 3, 2026 19:434,715153,133,196135,656,0001,080,0002,363,392
6May 3, 2026 19:434,718154,701,227135,751,0001,090,0002,371,584
7May 3, 2026 19:434,719151,916,289135,773,0001,084,0002,367,488
8May 3, 2026 19:434,723155,696,244135,831,0001,145,0002,363,392
9May 3, 2026 19:434,726157,404,789136,036,0001,046,0002,367,488