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 03:31Yuriy LyfenkoYuriy LyfenkoScore: 5,735Success
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 03:315,601459,620,202162,435,502027,455,488
2Oct 11, 2021 03:315,604461,591,139162,513,174027,455,488
3Oct 11, 2021 03:315,617488,652,849162,884,470027,459,584
4Oct 11, 2021 03:315,720368,496,645131,737,00034,154,00034,242,560
5Oct 11, 2021 03:315,730367,548,908134,147,00032,035,00033,452,032
6Oct 11, 2021 03:315,731374,449,277134,155,00032,037,00033,980,416
7Oct 11, 2021 03:315,735374,953,368141,364,00024,946,00033,980,416
8Oct 11, 2021 03:315,743383,275,776136,922,00029,632,00033,685,504
9Oct 11, 2021 03:315,746375,478,924130,035,00036,602,00033,853,440
10Oct 11, 2021 03:315,749364,562,977143,206,00023,511,00033,734,656
11Oct 11, 2021 03:315,754368,490,696138,873,00027,981,00034,177,024
12Oct 11, 2021 03:315,760384,454,297135,667,00031,385,00033,849,344