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:23TudyMTudyMScore: 4,731Success
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:274,725151,801,966136,029,0001,015,0002,387,968
2May 3, 2026 19:274,727154,576,083137,088,00002,375,680
3May 3, 2026 19:274,729154,941,533136,075,0001,080,0002,367,488
4May 3, 2026 19:274,729155,409,958136,070,0001,081,0002,363,392
5May 3, 2026 19:274,731153,316,696137,217,00002,367,488
6May 3, 2026 19:274,731151,414,907136,168,0001,045,0002,371,584
7May 3, 2026 19:274,735153,211,094136,224,0001,113,0002,355,200
8May 3, 2026 19:274,736154,081,118136,270,0001,086,0002,375,680
9May 3, 2026 19:274,736150,850,563136,254,0001,105,0002,367,488