Search found 45 matches

by Heartattack!
Wed Dec 01, 2004 8:41 pm
Forum: C++
Topic: Debugging in VC++ : Watching Part of an array
Replies: 6
Views: 2295

Well, you should. :D :D
by Heartattack!
Wed Dec 01, 2004 9:48 am
Forum: C++
Topic: Debugging in VC++ : Watching Part of an array
Replies: 6
Views: 2295

Try "&xyz[5500],100"
(without the quotes)
The debugger will show 100 elements with indexes numbered 0,1,2.....
Item with index 0 will be xyz[5500], index 1 will be xyz[5501] and so forth.

I haven't tried on VC++ 6 though. I only have .Net 2003. Can't wait for 2005 8) 8) 8) 8)
by Heartattack!
Tue Nov 30, 2004 10:09 pm
Forum: Volume 6 (600-699)
Topic: 694 - The Collatz Sequence
Replies: 46
Views: 15685

Johny,
You don't need a space before the "Case". I just got AC without it. 8) 8)
by Heartattack!
Tue Nov 30, 2004 10:08 pm
Forum: Volume 6 (600-699)
Topic: 694 - The Collatz Sequence
Replies: 46
Views: 15685

Re: Need help.

_.B._, You say: Case 3: A = 715827881, limit = 2147483647, number of terms = 5 In this case, the number of terms should be 6. 1. 715827881*3 + 1 = 2147483644 2. 2147483644/2=1073741822 3. 1073741822/2=536870911 4. 536870911*3 + 1=1610612734 5. 1610612734/2=805306367 6. 805306367*3 + 1=2415919102>lim...
by Heartattack!
Tue Nov 30, 2004 9:38 pm
Forum: Off topic (General chit-chat)
Topic: OJ stop responding and late reply
Replies: 14
Views: 4308

Ming, that message has been displayed for a long time. Or maybe I'm wrong and it was displayed before, removed and put back recently. Anyway, when I saw that message before, the judge was still fast. Well, the good news is the ojs fighting fit again. Thanks administrator guys. WORD. No, DWORD!
by Heartattack!
Tue Nov 30, 2004 2:19 pm
Forum: Off topic (General chit-chat)
Topic: OJ stop responding and late reply
Replies: 14
Views: 4308

Yay...great to see the OJ is back with us er, chronologically. BTW, how many years young(!) is the OJ?
by Heartattack!
Tue Nov 30, 2004 10:56 am
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 23893

514

This seems a very easy problem. Are there special cases? Can there be illegal numbers in the input [like if n=1 can a number in the permutation be 3]? I've tried all sorts of cases but I keep getting WA. Could someone please take a kind look at my code? [cpp] // p514.Rails.cpp : Defines the entry p...
by Heartattack!
Tue Nov 30, 2004 6:52 am
Forum: Volume 6 (600-699)
Topic: 616 - Coconuts, Revisited
Replies: 37
Views: 11429

616

Hey guys, I just got AC after a WA. I thought I'd share a couple of strange things about the problem: 1. Input is terminated with a negative number. You must process 0s. 2. Special case: Say in the morning there are no coconuts left. The description says that the coconuts left in the morning are div...
by Heartattack!
Tue Nov 30, 2004 6:38 am
Forum: Off topic (General chit-chat)
Topic: OJ stop responding and late reply
Replies: 14
Views: 4308

I submitted code the day before and at 12:30 am last night. I got replies (thankfully AC 8)) at 5:11am this morning. Come on guys, say a little prayer for the OJ :(
by Heartattack!
Mon Nov 29, 2004 7:08 pm
Forum: C++
Topic: Passing Template Functions as parameters
Replies: 1
Views: 1464

Oi Pops, I believe what you want is not possible. I'm not sure, but this is my explanation: Templates are just a blueprint. They do not contribute to the machine code. When the compiler encounters a call to a template, it "creates" a new function(if the same function with same data type/s hasn't bee...
by Heartattack!
Mon Nov 29, 2004 4:16 pm
Forum: Off topic (General chit-chat)
Topic: OJ stop responding and late reply
Replies: 14
Views: 4308

IT IZZZ SSSSOOOO BBBBOOOOORRRRIIIIINNNNNGGGG :evil: :evil: __Sorry, had to get that out. I just submit in the night and open in the morning. The tension is hampering my sleep OJ!!!! The judge needs some serious medication, people. I can't bear to watch the judge like this. What if he dies?!? 8)
by Heartattack!
Mon Nov 29, 2004 3:52 pm
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 19104

You're supposed keep the order of words correct:

I love you.=
I evol .uoy

See the sample io. Good luck.
by Heartattack!
Sun Nov 28, 2004 7:10 pm
Forum: C++
Topic: Variable(int) bits....
Replies: 6
Views: 2307

Thanks GURU bhai!. Ur awesome 8) 8) 8) 8)
by Heartattack!
Sat Nov 27, 2004 8:19 pm
Forum: C++
Topic: Variable(int) bits....
Replies: 6
Views: 2307

What can I use with VC++?
Declaring long long gives a 64bit int. Using cin/cout gives proper results. But I can't get printf() to work right in VC++. Any tips?
by Heartattack!
Sat Nov 27, 2004 8:17 pm
Forum: C++
Topic: Debugging in VC++ : Watching Part of an array
Replies: 6
Views: 2295

Oi,Pops, 8) 8) This works: &arr[10],5 Suppose arr[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20} then &arr[10],5 will show the following: &arr[10],5 [0]=11 [1]=12 [2]=13 [3]=14 [4]=15 You have to simply give the address followed by a coma and then the number of members to be viewed. PS: I th...

Go to advanced search