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 25, 2021 22:53Ilya AniskovetsIlya AniskovetsScore: 5,553Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2021 22:535,278464,149,702153,059,483027,459,584
2Sep 25, 2021 22:535,300483,565,325153,691,036027,467,776
3Sep 25, 2021 22:535,361485,430,943155,456,827027,435,008
4Sep 25, 2021 22:535,543346,541,583131,432,00029,319,00033,910,784
5Sep 25, 2021 22:535,543371,082,012136,592,00024,166,00033,583,104
6Sep 25, 2021 22:535,550359,553,118128,969,00031,992,00033,980,416
7Sep 25, 2021 22:535,553371,458,138135,939,00025,096,00033,689,600
8Sep 25, 2021 22:535,566367,387,553135,220,00026,205,00033,980,416
9Sep 25, 2021 22:535,569357,172,751131,861,00029,643,00033,697,792
10Sep 25, 2021 22:535,577368,491,149133,730,00027,990,00034,799,616
11Sep 25, 2021 22:535,579370,883,396129,638,00032,158,00034,357,248
12Sep 25, 2021 22:535,591344,612,538128,523,00033,613,00033,832,960