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 listDec 29, 2023 22:40Yuriy LyfenkoYuriy LyfenkoScore: 5,352Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2023 22:404,992344,651,542144,780,234027,373,568
2Dec 29, 2023 22:404,998348,858,383144,931,885027,394,048
3Dec 29, 2023 22:404,999347,493,020144,977,754027,459,584
4Oct 11, 2021 06:155,078442,942,010147,264,628027,439,104
5Oct 11, 2021 06:195,087457,051,814147,524,936027,439,104
6Oct 11, 2021 06:155,116452,695,245148,367,410027,439,104
7Oct 11, 2021 06:155,150440,699,551149,363,078027,435,008
8Oct 11, 2021 06:195,155488,504,030149,506,725027,435,008
9Oct 11, 2021 06:195,157471,439,926149,565,869027,439,104
10Oct 11, 2021 06:155,323360,586,406122,699,00031,664,00033,255,424
11Oct 11, 2021 06:195,335368,131,782131,571,00023,156,00033,538,048
12Oct 11, 2021 06:155,338367,222,284125,454,00029,340,00033,746,944
13Oct 11, 2021 06:155,341355,455,713130,660,00024,235,00034,025,472
14Dec 29, 2023 22:405,343345,548,410124,156,00030,790,00033,546,240
15Dec 29, 2023 22:405,344371,628,226126,624,00028,363,00034,013,184
16Oct 11, 2021 06:195,350354,993,575130,712,00024,442,00033,730,560
17Oct 11, 2021 06:195,351343,180,917133,011,00022,168,00034,017,280
18Oct 11, 2021 06:195,352363,992,565130,376,00024,833,00033,492,992
19Oct 11, 2021 06:195,352349,504,680124,369,00030,843,00033,751,040
20Oct 11, 2021 06:155,356357,746,849128,587,00026,746,00033,689,600
21Dec 29, 2023 22:405,357360,456,182122,904,00032,446,00034,004,992
22Oct 11, 2021 06:155,358344,068,528122,715,00032,658,00034,050,048
23Dec 29, 2023 22:405,358357,151,136129,478,00025,895,00034,025,472
24Dec 29, 2023 22:405,359364,087,486128,823,00026,582,00034,279,424
25Dec 29, 2023 22:405,361360,973,771125,179,00030,285,00033,914,880
26Dec 29, 2023 22:405,361357,685,899122,987,00032,468,00034,189,312
27Oct 11, 2021 06:155,362365,771,164128,732,00026,776,00033,751,040
28Oct 11, 2021 06:195,362358,105,333128,059,00027,441,00033,746,944
29Dec 29, 2023 22:405,364366,298,992125,252,00030,303,00033,599,488
30Oct 11, 2021 06:155,364365,439,067125,445,00030,106,00033,665,024
31Oct 11, 2021 06:195,366368,592,284126,117,00029,495,00034,275,328
32Oct 11, 2021 06:195,368362,214,500125,922,00029,745,00033,927,168
33Oct 11, 2021 06:155,369374,832,913127,201,00028,493,00034,537,472
34Oct 11, 2021 06:155,372352,066,555128,104,00027,670,00034,537,472
35Oct 11, 2021 06:195,374367,360,896127,507,00028,334,00033,927,168
36Dec 29, 2023 22:405,392365,373,166126,931,00029,448,00034,041,856