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:46Kenneth MaplesKenneth MaplesScore: 5,735Success
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:465,284382,529,308153,222,122027,459,584
2Oct 11, 2022 00:465,293385,160,293153,490,678027,459,584
3Oct 11, 2022 00:465,309416,164,757153,968,961027,373,568
4Oct 11, 2022 00:465,714366,229,461131,587,00034,115,00034,160,640
5Oct 11, 2022 00:465,717359,071,401127,144,00038,641,00033,546,240
6Oct 11, 2022 00:465,722365,825,537122,323,00043,610,00033,980,416
7Oct 11, 2022 00:465,735381,239,719132,447,00033,882,00033,939,456
8Oct 11, 2022 00:465,744390,238,491128,521,00038,042,00033,845,248
9Oct 11, 2022 00:465,763391,897,605120,705,00046,425,00034,045,952
10Oct 11, 2022 00:465,776394,002,454127,812,00039,699,00033,894,400
11Oct 11, 2022 00:465,808394,172,071129,316,00039,121,00034,103,296
12Oct 11, 2022 00:465,809394,789,680129,102,00039,345,00034,164,736