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 17, 2026 22:12Charles CabergsCharles CabergsScore: 8,782Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2026 22:128,771283,053,856208,285,00046,063,0002,273,280
2Apr 17, 2026 22:128,775282,033,455206,374,00048,087,0002,334,720
3Apr 17, 2026 22:128,776285,172,486215,430,00039,078,0002,437,120
4Apr 17, 2026 22:128,782291,355,345215,718,00038,949,0002,519,040
5Apr 17, 2026 22:128,782283,648,229214,727,00039,949,0002,416,640
6Apr 17, 2026 22:128,785282,900,344209,803,00044,957,0002,449,408
7Apr 17, 2026 22:128,800285,517,986212,175,00043,035,0002,387,968
8Apr 17, 2026 22:128,804283,232,120211,266,00044,055,0002,486,272
9Apr 17, 2026 22:128,808279,468,458207,355,00048,082,0002,342,912