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 listAug 15, 2025 22:37Aniruddha DebAniruddha DebScore: 5,239Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2025 22:375,225176,312,814151,525,00002,277,376
2Aug 15, 2025 22:375,227176,322,062150,574,0001,003,0002,539,520
3Aug 15, 2025 22:375,235177,541,254149,819,0001,997,0002,539,520
4Aug 15, 2025 22:375,239173,070,434149,926,0001,999,0002,510,848
5Aug 15, 2025 22:375,239173,969,384150,928,000999,0002,510,848
6Aug 15, 2025 22:375,239173,352,597149,929,0001,999,0002,277,376
7Aug 15, 2025 22:375,245172,835,687151,094,0001,000,0002,539,520
8Aug 15, 2025 22:375,246172,260,151152,131,00002,531,328
9Aug 15, 2025 22:375,248176,606,260152,194,00002,539,520