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 24, 2026 22:50Charles CabergsCharles CabergsScore: 3,685Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 22:513,680124,012,205105,725,0001,006,0002,461,696
2Apr 24, 2026 22:513,682125,258,597105,781,0001,007,0002,338,816
3Apr 24, 2026 22:513,682126,983,189104,801,0001,996,0002,461,696
4Apr 24, 2026 22:513,685131,295,681104,875,0001,997,0002,338,816
5Apr 24, 2026 22:513,685125,661,464104,872,0001,997,0002,465,792
6Apr 24, 2026 22:513,686124,793,096104,920,0001,998,0002,334,720
7Apr 24, 2026 22:513,686127,117,240103,913,0002,997,0002,338,816
8Apr 24, 2026 22:513,686122,224,350104,923,0001,998,0002,461,696
9Apr 24, 2026 22:513,687128,235,511104,926,0001,998,0002,334,720