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 22, 2021 18:18Yuriy LyfenkoYuriy LyfenkoScore: 5,733Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 18:185,451487,635,014158,073,563027,451,392
2Sep 22, 2021 18:185,492521,516,757159,274,768027,447,296
3Sep 22, 2021 18:185,543491,510,501160,743,406027,443,200
4Sep 22, 2021 18:185,710368,475,390139,706,00025,871,00033,751,040
5Sep 22, 2021 18:185,711370,585,348135,496,00030,110,00033,599,488
6Sep 22, 2021 18:185,732374,604,829137,836,00028,378,00034,025,472
7Sep 22, 2021 18:185,733374,886,015138,722,00027,540,00034,025,472
8Sep 22, 2021 18:185,750379,848,814137,448,00029,308,00034,152,448
9Sep 22, 2021 18:185,758364,116,765142,670,00024,306,00034,021,376
10Sep 22, 2021 18:185,759378,455,093140,050,00026,972,00033,988,608
11Sep 22, 2021 18:185,763364,736,308135,287,00031,832,00033,755,136
12Sep 22, 2021 18:185,774357,184,333142,183,00025,277,00034,144,256