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 21, 2026 14:52Charles CabergsCharles CabergsScore: 4,296Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 14:524,293140,679,342122,506,0002,008,0002,523,136
2Apr 21, 2026 14:524,294138,976,950122,527,0002,008,0002,338,816
3Apr 21, 2026 14:524,294141,432,299123,550,0001,004,0002,506,752
4Apr 21, 2026 14:524,296142,308,154123,594,0001,004,0002,514,944
5Apr 21, 2026 14:524,296142,447,279122,592,0002,009,0002,519,040
6Apr 21, 2026 14:524,297140,894,055123,619,0001,005,0002,523,136
7Apr 21, 2026 14:524,298144,006,682122,648,0002,010,0002,519,040
8Apr 21, 2026 14:524,301140,700,765121,763,0002,994,0002,510,848
9Apr 21, 2026 14:524,304143,720,908121,839,0002,996,0002,514,944