Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 3 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 17 Sep 2017 My Price 4.00

rectangular grid of dimension

You have a rectangular grid of dimension N x M. You need to paint the grid with black or white color such that there is no rectangle of size X x Y having same color in each cell. Find the number of ways to paint the grid, modulo 1000000007.

 

Input

 

A single line containing 4 space separated integers, N, M, X and Y.

 

Output

 

A single line containing the answer modulo 1000000007

 

Constraints

 

  • 1 = X = 3
  • 1 = N = 10^6
  • 2 = Y = M
  • If (X = 1), then M = 10^3, no other constraint on N
  • If (X = 2), then M = 7, no other constraint on N
  • If (X = 3), then N = 8, M = 5

 

Example

Input: 2 2 1 2
Output: 4

Answers

(5)
Status NEW Posted 17 Sep 2017 12:09 PM My Price 4.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)