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:36TudyMTudyMScore: 4,887Success
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:364,880158,548,225140,537,0001,003,0002,375,680
2Apr 28, 2026 09:364,881157,103,898139,553,0002,007,0002,367,488
3Apr 28, 2026 09:364,882156,630,706140,601,0001,004,0002,379,776
4Apr 28, 2026 09:364,883165,789,454141,617,00002,359,296
5Apr 28, 2026 09:364,887160,671,240139,746,0001,996,0002,379,776
6Apr 28, 2026 09:364,888161,492,776139,775,0001,996,0002,371,584
7Apr 28, 2026 09:364,888157,147,301139,767,0001,996,0002,306,048
8Apr 28, 2026 09:364,890160,172,779139,835,0001,997,0002,367,488
9Apr 28, 2026 09:364,890159,071,577139,839,0001,997,0002,367,488