Блог пользователя wuhudsm

Автор wuhudsm, история, 5 дней назад, По-английски

A

Idea:Yugandhar_Master

solution
code(C++)

B

Idea:beyondpluto

solution
code(C++)

C

Idea:Yugandhar_Master

solution
code(C++)

D

Idea:wuhudsm

Preparer:PROELECTRO444

solution
code(C++)

E

Idea:HexShift

solution
code(C++)

F

Idea:Yugandhar_Master

solution
code(C++)

G

Idea:vikram108

solution
code(C++)
  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится

»
5 дней назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Is it possible to make everyone's submission open so that I can check other's solution?

  • »
    »
    5 дней назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I also want that too!

  • »
    »
    5 дней назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Submit editorial's code to be able to view other's codes.

»
5 дней назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

It would be interesting to know the difficulties of the problems (as in the archive).

»
5 дней назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Enjoyed it good contest

»
3 дня назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

For problem F, a simple Inclusion-Exclusion is that,

  • let A = every row has at least one 0 = no row has all 1s, so the count is $$$(2^n-1)^n$$$.

  • let B = every col has at least one 1, and it has the same count with A.

Notice that (!A && !B) is invalid, because !A = some rows are all 1s, and !B = some cols are all 0s. Then (A || B) is the total ways, as well as $$$2^{n^2}$$$.

The answer is (A && B), which equals to A + B — (A || B).