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:17TudyMTudyMScore: 4,718Success
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:214,714155,716,649135,694,0001,015,0002,363,392
2May 3, 2026 19:214,717152,110,810135,724,0001,079,0002,359,296
3May 3, 2026 19:214,717152,365,654135,719,0001,078,0002,371,584
4May 3, 2026 19:214,717153,365,288135,708,0001,113,0002,367,488
5May 3, 2026 19:214,718154,893,946135,769,0001,067,0002,363,392
6May 3, 2026 19:214,721155,192,524135,831,0001,097,0002,371,584
7May 3, 2026 19:214,722150,854,962135,909,0001,051,0002,375,680
8May 3, 2026 19:214,723152,531,804135,920,0001,056,0002,367,488
9May 3, 2026 19:214,726156,094,659136,055,0001,011,0002,367,488