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 listMay 3, 2026 21:21TudyMTudyMScore: 4,121Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 21:214,114135,369,909119,319,00002,379,776
2May 3, 2026 21:214,115135,069,682118,332,0001,015,0002,375,680
3May 3, 2026 21:214,115133,703,697118,328,0001,022,0002,367,488
4May 3, 2026 21:214,118137,831,255118,401,0001,048,0002,371,584
5May 3, 2026 21:214,121136,678,819118,449,0001,071,0002,367,488
6May 3, 2026 21:214,123137,874,688118,538,0001,048,0002,371,584
7May 3, 2026 21:214,125137,695,358118,604,0001,049,0002,379,776
8May 3, 2026 21:214,129138,743,049118,685,0001,062,0002,363,392
9May 3, 2026 21:214,159134,732,261119,622,0001,015,0002,359,296