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 28, 2026 09:31TudyMTudyMScore: 5,039Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 09:325,028164,225,444143,823,0001,997,0002,367,488
2Apr 28, 2026 09:325,029161,798,743143,871,0001,998,0002,363,392
3Apr 28, 2026 09:325,030161,123,868143,893,0001,998,0002,441,216
4Apr 28, 2026 09:325,035161,462,506144,036,0002,000,0002,363,392
5Apr 28, 2026 09:325,039162,061,773145,138,0001,000,0002,375,680
6Apr 28, 2026 09:325,039166,855,467144,134,0002,001,0002,367,488
7Apr 28, 2026 09:325,040164,272,762144,166,0002,002,0002,367,488
8Apr 28, 2026 09:325,042163,717,371145,229,0001,001,0002,297,856
9Apr 28, 2026 09:325,042167,858,446145,239,0001,001,0002,371,584