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 20:09TudyMTudyMScore: 4,708Success
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 20:104,692151,940,067135,040,0001,044,0002,375,680
2May 3, 2026 20:104,704153,016,377135,398,0001,025,0002,363,392
3May 3, 2026 20:104,707155,095,896135,471,0001,042,0002,363,392
4May 3, 2026 20:104,708155,655,847135,507,0001,046,0002,371,584
5May 3, 2026 20:104,708152,688,919135,497,0001,054,0002,367,488
6May 3, 2026 20:104,710156,929,209135,519,0001,084,0002,367,488
7May 3, 2026 20:104,710151,662,791135,572,0001,027,0002,375,680
8May 3, 2026 20:104,713154,289,002135,615,0001,071,0002,371,584
9May 3, 2026 20:104,717153,554,454135,781,0001,018,0002,371,584