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 listAug 24, 2024 11:17Andrey LikhachevAndrey LikhachevScore: 7,099Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 24, 2024 11:176,782409,383,115196,668,583027,484,160
2Aug 24, 2024 11:176,805410,663,785197,333,949027,361,280
3Aug 24, 2024 11:176,841414,575,457198,385,452027,516,928
4Aug 24, 2024 11:177,091415,187,832176,403,00029,232,00034,299,904
5Aug 24, 2024 11:177,091421,916,175177,276,00028,364,00034,004,992
6Aug 24, 2024 11:177,096405,168,203174,502,00031,269,00033,988,608
7Aug 24, 2024 11:177,099416,921,084181,048,00024,829,00033,488,896
8Aug 24, 2024 11:177,108405,105,894172,596,00033,533,00033,247,232
9Aug 24, 2024 11:177,115396,201,568175,847,00030,493,00033,951,744
10Aug 24, 2024 11:177,144420,503,355167,861,00039,327,00033,984,512
11Aug 24, 2024 11:177,175428,616,759178,486,00029,577,00033,505,280
12Aug 24, 2024 11:177,253426,242,757190,811,00019,514,00033,718,272