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 listApr 10, 2026 12:29limanjun99limanjun99Score: 5,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2026 12:295,786195,384,402165,804,0001,997,0002,359,296
2Apr 10, 2026 12:295,790190,458,782165,922,0001,999,0002,293,760
3Apr 10, 2026 12:295,792192,147,257165,973,0001,999,0002,293,760
4Apr 10, 2026 12:295,793191,336,493165,995,0001,999,0002,293,760
5Apr 10, 2026 12:295,795190,482,341166,069,0002,000,0002,293,760
6Apr 10, 2026 12:295,796192,614,880166,074,0002,000,0002,461,696
7Apr 10, 2026 12:295,796190,894,447167,076,0001,000,0002,293,760
8Apr 10, 2026 12:295,796190,170,918168,083,00002,293,760
9Apr 10, 2026 12:295,799193,860,295168,179,00002,293,760