Huawei OD Computer-Based Unified Examination Paper C Martian Computing (C++ Java JavaScript Python)

Huawei OD computer-based test: unified examination Paper C + Paper D + Paper B + Paper A

Directory of real test questions for paper C:[First release on the entire network] Huawei OD computer test paper C drawn question bank list (full real question bank) including test point description
Paper C, Paper D, Paper B, Paper A, real question list:Huawei OD computer-based test real question directory (Paper C + Paper D + Paper B + Paper A) + Test center description< a i=4> Column: The latest Huawei OD machine test C paper + D paper + AB paper (C++JavaJSPy)

Question description

It is known that the operators used by Martians are # and $, and their equivalent formulas to those on Earth are as follows:

x#y = 2*x+3*y+4

x$y = 3*x+y+2

  1. where x and y are unsigned integers
  2. Earthling formulas are calculated according to C language rules
  3. In the Martian formula, $ has a higher priority than #, and the same operators are calculated from left to right.

There is a string message from Martians. Please translate it and calculate the result.

Enter description

Martian string expression (without carriage return and line feed at the end)

Guess you like

Origin blog.csdn.net/shangyanaf/article/details/135006310