wuhudsm's blog

By wuhudsm, history, 2 days ago, In English

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++)
  • Vote: I like it
  • +13
  • Vote: I do not like it

»
2 days ago, # |
  Vote: I like it +3 Vote: I do not like it

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

  • »
    »
    2 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I also want that too!

  • »
    »
    2 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

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

»
2 days ago, # |
  Vote: I like it +14 Vote: I do not like it

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

»
46 hours ago, # |
  Vote: I like it +8 Vote: I do not like it

Enjoyed it good contest

»
7 hours ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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).