×

# Most Horrible Code Ever Written By Me

 29 2 Problem #include using namespace std ; #define LL long long #define inf LLONG_MAX int T,N,D ; LL solve(int N,int D){ if(N == 1){ LL DP[D] ; for(int i=0;i> T ; while(T--){ cin >> N >> D ; cout << solve(N,D) << endl ; } return 0 ; }  I don't like what i did .. asked 25 Jan '15, 14:17 1.7k●1●17●30 accept rate: 11% 2 5 stars for your code! (25 Jan '15, 14:20) 2 He He :D good joke (better than RRJOKE )... (25 Jan '15, 14:23)

 14 Thank God its AC. For a moment there I thought you were asking to find a bug :P answered 25 Jan '15, 14:31 442●2●5●19 accept rate: 8% 2 he he :D .. (25 Jan '15, 14:34)
 4 This is brilliant ;) I was trying the same thing. I got tired and angry after n==7 and then I shut my editor and deleted the file ! :P answered 25 Jan '15, 14:26 883●1●4●22 accept rate: 9% 1 I joined the contest very lately almost after (1.5 hours). so at first attempt i clicked with this idea and started coding without giving it a second thought ... although it is not good .. i feel (25 Jan '15, 14:30) LOL. I left it in the middle . I should have done it only :P (25 Jan '15, 14:32)
 2 Hilarious!! :p :p though you could have simply used recursion, and let the function do all the work! :P My solution answered 25 Jan '15, 17:22 947●2●10 accept rate: 25% thanx .. :D (25 Jan '15, 18:26) @gvaibhav21 Can you please explain your code..?? (26 Jan '15, 23:31) damn_me3★
 1 Tell me writing such code is just waste of time .. right ?? answered 25 Jan '15, 14:54 1.7k●1●17●30 accept rate: 11%
 0 :o still glitch free answered 25 Jan '15, 14:29 5★root8950 63●4 accept rate: 0% 1 lolz it was not but i had to make it to get it accepted .. (25 Jan '15, 14:31)
 0 Salute . Nice way :P answered 25 Jan '15, 15:12 131●5 accept rate: 14% Thanks but it is not nice at all :D (25 Jan '15, 15:16)
 0 What would you do if N < 20? :DD You are my master ;) Anyway, congrats for Accepted. answered 25 Jan '15, 15:18 754●8●50●97 accept rate: 12% I did this because N <= 10 .. and anyways thanks .. (25 Jan '15, 15:24) I know, just kidding (25 Jan '15, 23:44)
 0 May be a horrible code, but the approach is awesome. Hats off to your patience in coding this. answered 25 Jan '15, 16:41 893●2●11●35 accept rate: 10% thanx dude .. (25 Jan '15, 18:27)
 0 10 dimensional array :P .great patience...hats off for that...i don't have enough to read :P btw in real life, u also wudn't have, to imagine 10th dimension :P answered 25 Jan '15, 21:48 51●3 accept rate: 8% thanx .. :D (26 Jan '15, 00:24)
 0 great...:) there was no condition on d.... how u dared to think even that would get accepted it would have overflow for n=9 d =9 .:p answered 26 Jan '15, 00:17 29●1 accept rate: 0% 1 it was given total number of cells will not exceed 10^6 .. (26 Jan '15, 00:24)
 0 You Sir , Deserve a Medal :P , A True Hero :P answered 30 Jan '15, 20:10 80●2●7 accept rate: 4% He He Good Joke :D (31 Jan '15, 01:51)
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×1,688
×205
×31
×17

question asked: 25 Jan '15, 14:17

question was seen: 3,583 times

last updated: 31 Jan '15, 01:51