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 listSep 29, 2021 13:36Yuriy LyfenkoYuriy LyfenkoScore: 5,552Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 13:365,496488,070,862159,396,101027,467,776
2Sep 29, 2021 13:365,519442,580,752160,059,785027,344,896
3Sep 29, 2021 13:365,529446,764,499160,351,775027,455,488
4Sep 29, 2021 13:365,529367,039,580133,624,00026,724,00033,935,360
5Sep 29, 2021 13:365,531351,584,354127,930,00032,474,00034,025,472
6Sep 29, 2021 13:365,548351,306,617133,047,00027,847,00033,701,888
7Sep 29, 2021 13:365,552341,649,571131,258,00029,738,00033,718,272
8Sep 29, 2021 13:365,553355,143,913129,225,00031,809,00033,636,352
9Sep 29, 2021 13:365,558377,164,302128,346,00032,832,00033,964,032
10Sep 29, 2021 13:365,603376,169,569127,028,00035,449,00035,295,232
11Sep 29, 2021 13:365,610372,109,011127,205,00035,499,00035,295,232
12Sep 29, 2021 13:365,640384,283,114127,318,00036,236,00035,782,656