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 11, 2021 05:49Yuriy LyfenkoYuriy LyfenkoScore: 5,466Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 05:495,089430,333,362147,590,157027,435,008
2Oct 11, 2021 05:495,095436,197,565147,752,096027,430,912
3Oct 11, 2021 05:495,129432,723,373148,755,051027,430,912
4Oct 11, 2021 05:495,460364,470,865128,913,00029,436,00033,693,696
5Oct 11, 2021 05:495,463369,192,219126,536,00031,883,00034,009,088
6Oct 11, 2021 05:495,464345,517,902134,485,00023,978,00034,291,712
7Oct 11, 2021 05:495,466354,208,965131,758,00026,763,00034,013,184
8Oct 11, 2021 05:495,470368,391,361123,807,00034,820,00033,632,256
9Oct 11, 2021 05:495,484354,857,849123,911,00035,124,00033,894,400
10Oct 11, 2021 05:495,486366,563,686123,421,00035,676,00033,746,944
11Oct 11, 2021 05:495,488370,198,891127,918,00031,224,00033,894,400
12Oct 11, 2021 05:495,499378,485,718130,837,00028,620,00034,320,384