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 listOct 16, 2021 14:48Ilya AniskovetsIlya AniskovetsScore: 5,492Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 14:485,220415,013,994151,393,921027,451,392
2Oct 16, 2021 14:485,250420,664,028152,252,200027,443,200
3Oct 16, 2021 14:485,310465,152,170153,991,716027,439,104
4Oct 16, 2021 14:485,473343,618,141128,570,00030,133,00033,755,136
5Oct 16, 2021 14:485,483363,603,173128,002,00031,000,00034,025,472
6Oct 16, 2021 14:485,489370,669,327131,815,00027,377,00033,587,200
7Oct 16, 2021 14:485,492342,688,222128,399,00030,855,00033,722,368
8Oct 16, 2021 14:485,495344,414,249132,451,00026,904,00033,980,416
9Oct 16, 2021 14:485,510375,943,855128,645,00031,156,00034,021,376
10Oct 16, 2021 14:485,513372,518,233130,542,00029,346,00033,816,576
11Oct 16, 2021 14:485,531380,877,796129,118,00031,270,00034,582,528
12Oct 16, 2021 14:485,535379,973,237133,427,00027,102,00034,004,992