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 12, 2026 05:39Josu San MartinJosu San MartinScore: 3,478Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2026 21:013,477125,807,49798,844,0001,996,0002,531,328
2Apr 12, 2026 05:393,477125,564,03899,841,000998,0002,420,736
3Apr 12, 2026 05:393,477121,958,26298,843,0001,996,0002,535,424
4Mar 10, 2026 21:013,478123,887,07499,852,000998,0002,420,736
5Apr 12, 2026 05:393,478125,324,12599,850,000998,0002,416,640
6Apr 12, 2026 05:393,478123,168,60698,865,0001,997,0002,416,640
7Mar 10, 2026 21:013,479119,045,41499,888,000998,0002,531,328
8Apr 12, 2026 05:393,480129,061,02198,914,0001,998,0002,535,424
9Apr 12, 2026 05:393,480123,236,91298,922,0001,998,0002,535,424