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 listOct 11, 2022 00:57Kenneth MaplesKenneth MaplesScore: 5,737Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2022 00:565,319443,324,077154,247,402027,455,488
2Oct 11, 2022 00:575,334413,420,557154,693,801027,467,776
3Oct 11, 2022 00:565,339409,780,012154,821,708027,459,584
4Oct 11, 2022 00:565,345373,615,470155,000,198027,394,048
5Oct 11, 2022 00:575,356494,949,074155,325,545027,451,392
6Oct 11, 2022 00:575,368420,124,644155,683,553027,451,392
7Oct 11, 2022 00:575,716361,672,531130,463,00035,313,00033,554,432
8Oct 11, 2022 00:575,737362,135,313122,979,00043,404,00033,898,496
9Oct 11, 2022 00:575,744369,906,026138,433,00028,155,00034,078,720
10Oct 11, 2022 00:575,748391,645,986130,978,00035,721,00033,865,728
11Oct 11, 2022 00:575,753391,667,275143,822,00023,011,00033,677,312
12Oct 11, 2022 00:575,755391,613,842129,012,00037,875,00033,902,592
13Oct 11, 2022 00:575,770399,175,718144,921,00022,410,00033,677,312
14Oct 11, 2022 00:575,789401,445,274129,064,00038,824,00033,996,800
15Oct 11, 2022 00:575,803393,519,890139,683,00028,609,00034,172,928