Title |
User |
Message |
Date Posted |
Re: ... |
jargon |
Well, it depends on the scale. If you hardcode output based on the test input because you have prior knowledge of the test cases, then yes, that's cheating. If a problem has only a possible inputs a... |
Dec 27, 2015 - 6:45:03 pm UTC |
Re: ... |
girishr2004 |
Wait, hardcoding is cheating ????? |
Dec 27, 2015 - 3:45:55 pm UTC |
Re: ... |
jargon |
I think you misunderstand what brute force means. Anyway: so long as you're not doing anything that's clearly cheating, e.g. copying code or hardcoding the output, you can do more or less whatever yo... |
Dec 28, 2011 - 5:45:01 pm UTC |
... |
XZNZ |
is bruteforce accepted for this problem? |
Dec 28, 2011 - 5:00:33 pm UTC |
Re: Re: THIS IS SO HARD! |
SourSpinach |
var a:array [1..10,1..20] of integer; a[8,19]=5; A 2D array is like an array of arrays. If a 1D array is like a line of variables, think of a 2D array as a grid. |
Jan 22, 2011 - 5:48:38 am UTC |
Re: Re: THIS IS SO HARD! |
ilovepi |
Is it the same as like: var a:array [1..s] of integer? |
Jan 22, 2011 - 2:50:22 am UTC |
Re: Re: THIS IS SO HARD! |
bbi5291 |
Use a two-dimensional array. |
Jan 22, 2011 - 12:34:10 am UTC |
Re: Re: THIS IS SO HARD! |
ilovepi |
I know i saw but could you help me with how to do it? |
Jan 22, 2011 - 12:01:43 am UTC |
Re: THIS IS SO HARD! |
bbi5291 |
I suggest you do some reading on Pascal's Triangle. In fact, just go read the Wikipedia article. |
Jan 21, 2011 - 10:50:17 pm UTC |
THIS IS SO HARD! |
ilovepi |
I thought it was like 1 2 3 2 1 but it's much harder! Can someone help me with my code? How would i get the numbers i output? |
Jan 21, 2011 - 9:57:38 pm UTC |