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 28, 2025 11:37Aniruddha DebAniruddha DebScore: 6,738Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2025 11:376,686212,877,379192,907,000999,0002,539,520
2May 28, 2025 11:376,704218,404,825194,424,00002,531,328
3May 28, 2025 11:376,734216,903,406194,289,0001,001,0002,428,928
4May 28, 2025 11:376,735218,500,427195,304,00002,420,736
5May 28, 2025 11:376,738216,576,074194,403,0001,002,0002,277,376
6May 28, 2025 11:376,741221,384,345195,482,00002,539,520
7May 28, 2025 11:376,763222,648,483196,120,00002,428,928
8May 28, 2025 11:376,773214,949,324196,418,00002,506,752
9May 28, 2025 11:376,863222,911,388198,027,0001,000,0002,531,328