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 04:01Yuriy LyfenkoYuriy LyfenkoScore: 6,216Success
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 04:015,694468,162,436165,137,043027,455,488
2Sep 22, 2021 04:015,743506,605,118166,534,224027,451,392
3Sep 22, 2021 04:015,750511,419,449166,739,641027,455,488
4Sep 22, 2021 04:016,212389,702,652152,505,00027,635,00033,570,816
5Sep 22, 2021 04:016,214371,596,339154,307,00025,890,00033,951,744
6Sep 22, 2021 04:016,214388,337,867156,258,00023,959,00033,902,592
7Sep 22, 2021 04:016,216390,092,189153,485,00026,782,00033,751,040
8Sep 22, 2021 04:016,227368,040,767150,991,00029,586,00033,906,688
9Sep 22, 2021 04:016,232403,270,196156,553,00024,165,00034,013,184
10Sep 22, 2021 04:016,236392,102,476148,044,00032,788,00033,890,304
11Sep 22, 2021 04:016,239399,462,800148,932,00031,985,00033,943,552
12Sep 22, 2021 04:016,255369,996,488157,139,00024,256,00033,701,888