d2jsp
Log InRegister
d2jsp Forums > Off-Topic > International > Magyar > Official /care Topic
Prev1250725082509251025115001Next
Closed New Topic New Poll
Member
Posts: 45,902
Joined: Oct 8 2006
Gold: 59.00
May 9 2012 02:18pm
Quote (My_Acc_Is_Bazur @ 9 May 2012 21:17)
rostálva lettek a jákobjaim


Member
Posts: 33,712
Joined: Jan 7 2007
Gold: 0.00
May 9 2012 02:19pm
MRW A KING. LESZAROM KI MIT VAKER. TE VAGY A IGAZI SPAN. A TÖBBI MEG CSIRA. PROFI VAGY ÉS AZ IS MARADSZ.HELLO. MR.LOBO VERONA
Member
Posts: 2,669
Joined: Oct 15 2010
Gold: 133.37
May 9 2012 02:37pm
kb 3 napja befejeztem a prog nagy házim. mai napig szarakodtam a dokumentációval. ma este kész. mondom zsír tanulhatok a holnapi prog zh-ra.
De tudtam hogy ,,hibás'' a program, mert nincs benne copy konstruktor, meg destruktor. aw mondoma faszomat akkor is írok hozzá. kb. 15 perc alatt megment.
Member
Posts: 42,999
Joined: Jul 16 2006
Gold: 1.00
May 9 2012 02:45pm
Quote (HunIndex @ 9 May 2012 21:37)
kb 3 napja befejeztem a prog nagy házim. mai napig szarakodtam a dokumentációval. ma este kész. mondom zsír tanulhatok a holnapi prog zh-ra.
De tudtam hogy ,,hibás'' a program, mert nincs benne copy konstruktor, meg destruktor. aw mondoma faszomat akkor is írok hozzá. kb. 15 perc alatt megment.
http://gifsforum.com/images/meme/everything%20went%20better%20than%20expected/preview/everything%20went%20better%20than%20expected.jpg


mi volt a feladat?
Member
Posts: 17,322
Joined: Apr 29 2007
Gold: 26.00
May 9 2012 02:48pm
Quote (CyberPunk666 @ 9 May 2012 21:45)
mi volt a feladat?


Lego Blocks

You have 4 types of lego blocks, of sizes 1 * 1 * 1, 1 * 1 * 2, 1 * 1 * 3 and 1 * 1 * 4. Assume you have infinite number of blocks of each type.

You want to make a wall of height N and width M out of these blocks. The wall should not have any holes in it. The wall you build should be one solid structure. A solid structure means that it should not be possible to separate the wall along any vertical line without cutting any lego block used to build the wall. The blocks can only be placed horizontally. In how many ways can the wall be built?

Input:
The first line contains the number of test cases T. T test cases follow. Each case contains two integers N and M.

Output:
Output T lines, one for each test case containing the number of ways to build the wall. As the numbers can be very large, output the result modulo 1000000007.

Constraints:
1 <= T <= 100
1 <= N,M <= 1000

Sample Input:
4
2 2
3 2
2 3
4 4

Sample Output:
3
7
9
3375

Explanation:

For the first case, the possible walls are:

aa
bc

aa
bb

ab
cc

For the second case, each row of the wall can contain either two blocks of width 1, or one block of width 2. However, the wall where all rows contain two blocks of width 1 is not a solid one as it can be divided vertically. Thus the number of ways is 2 * 2 * 2 - 1 = 7.

PS:"aa" is one lego block of size 1 * 1 * 2, "b" and "c" are lego blocks of size 1 * 1 * 1.
Member
Posts: 2,669
Joined: Oct 15 2010
Gold: 133.37
May 9 2012 02:53pm
Quote (CyberPunk666 @ May 9 2012 10:45pm)
mi volt a feladat?


Hozzon létre egy Bútor osztályt a súly, jellemző anyag, legnagyobb magasság adattagokkal. Származtassa belőle az Asztal és a Szekrény alosztályokat. Az asztal osztályt lássa el asztallap-alak és fiókos adattagokkal. Írjon programot, amellyel létrehozhatóak az asztal és a szekrény egyedeket tároló vektorok. A program tegye lehetővé a feltöltést és a legnehezebb üveges szekrény összes adatának kiíratását, valamint a kulccsal zárható, üveges, fémszekrények kilistázását.

Ezt csak én írtam bele a doksiba, de kb ez. még pár dolgot kikötöttek de nagyjából ennyi.
Member
Posts: 18,418
Joined: May 17 2008
Gold: 1,694.20
May 9 2012 03:00pm
genthor ürítsen pm boxot
Member
Posts: 31,291
Joined: Jun 18 2007
Gold: 280.00
May 9 2012 03:05pm
Member
Posts: 42,133
Joined: Nov 12 2007
Gold: 6,645.00
May 9 2012 03:09pm
:DDDD
top gearben vazelint , tampont és condomot kaptak hogy a kocsit vízhatlanná tegyék
Member
Posts: 22,595
Joined: Jun 5 2005
Gold: 10,257.50
May 9 2012 03:52pm
Quote (Ghostmasterq @ 9 May 2012 22:00)
genthor ürítsen pm boxot


Done.
Go Back To Magyar Topic List
Prev1250725082509251025115001Next
Closed New Topic New Poll