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 21:22TudyMTudyMScore: 4,135Success
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 21:224,125137,827,837118,578,0001,049,0002,367,488
2May 3, 2026 21:224,129134,062,523118,680,0001,064,0002,367,488
3May 3, 2026 21:224,132136,442,099118,804,0001,045,0002,363,392
4May 3, 2026 21:224,135137,791,216118,846,0001,076,0002,371,584
5May 3, 2026 21:224,135136,668,110118,891,0001,039,0002,367,488
6May 3, 2026 21:224,136138,746,159118,947,0001,017,0002,363,392
7May 3, 2026 21:224,137137,938,083118,907,0001,076,0002,367,488
8May 3, 2026 21:224,138138,382,451118,977,0001,049,0002,367,488
9May 3, 2026 21:224,139135,033,175119,006,0001,047,0002,367,488