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:42Yuriy LyfenkoYuriy LyfenkoScore: 5,449Success
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:425,094438,979,523147,719,102027,435,008
2Oct 11, 2021 05:425,115471,285,248148,327,514027,439,104
3Oct 11, 2021 05:425,186477,791,193150,406,303027,430,912
4Oct 11, 2021 05:425,427338,856,667123,374,00034,000,00033,796,096
5Oct 11, 2021 05:425,432358,588,237130,763,00026,770,00033,755,136
6Oct 11, 2021 05:425,442346,628,326134,667,00023,145,00033,890,304
7Oct 11, 2021 05:425,449355,117,996129,484,00028,547,00033,529,856
8Oct 11, 2021 05:425,461373,284,893126,700,00031,675,00034,021,376
9Oct 11, 2021 05:425,461345,626,638130,613,00027,768,00033,746,944
10Oct 11, 2021 05:425,480366,637,474129,747,00029,167,00034,074,624
11Oct 11, 2021 05:425,487362,993,327129,733,00029,392,00033,644,544
12Oct 11, 2021 05:425,538379,252,232124,587,00036,013,00036,249,600