Search found 15 matches

by sml
Thu Aug 03, 2006 8:18 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 22186

It needs trailing spaces as far as I understand.
by sml
Thu Aug 03, 2006 8:06 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 22186

Do you or do you not have trailing spaces? My output does, and I got AC. Do a forum search for this problem, there are some sample data to try.
by sml
Wed Aug 02, 2006 7:30 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 22186

Erm. Screw all that crap I was writing. I got AC, the problem is that it expects a newline at the end of the output! Grr! I would've got it on my first try had I done that.

I hate this! Die PE die!
by sml
Tue Aug 01, 2006 10:07 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 22186

edit: trailing spaces are "okay" (and possibly expected), haven't tried writing a "strip trailing spaces" function, but I might if I get bored.

This was a cool and easy problem.
by sml
Tue Aug 01, 2006 8:51 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 22186

Hmm, no newline at the end of the output? Haven't tried my hand at this one but it looks really easy so if I get around to it (working on a few others at the moment), I'll let you know. BTW, it *might* be throwing garbage in the input, which you should ignore. ie, "this\t\is" should return: t h i s ...
by sml
Tue Aug 01, 2006 3:58 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 22186

newline at end of file as far as I can tell.
by sml
Mon Jul 31, 2006 2:49 am
Forum: Volume 7 (700-799)
Topic: 724 - Reverse
Replies: 14
Views: 5179

It took me about 30 mins to make a quine, now just gotta reverse it. This is pretty easy. :)

Can't be judged?!? Damnit! That was the most elegant piece of code I've ever written!
by sml
Mon Jul 31, 2006 2:04 am
Forum: Volume 7 (700-799)
Topic: 724 - Reverse
Replies: 14
Views: 5179

724 - Reverse

This looks like a fun one! I'm going to try my hand at it. Seems like a simple string storage problem. Should be easy as long as it's not expecting highly indented code.
by sml
Mon Jul 31, 2006 2:03 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 36361

Delete yer code. ;) :D

And congrats.
by sml
Sat Jul 29, 2006 1:41 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193269

well ok ... i still dont know if u have got AC but anyway this is the problem The integers i and j must appear in the output in the same order in which they appeared in the input your code doesnt do it because you swap the two integers. it prints i and j in non decreasing order for each case. Yeah,...
by sml
Fri Jul 28, 2006 10:46 pm
Forum: C++
Topic: 64 Memory and ~0 CPU, How? #pragma with online-judge?
Replies: 2
Views: 1937

Basically, code like you're coding C, use pointers, arrays, tight loops, etc. Minimize the number of overall operations as best you can. I haven't done any problems without using simple loops and compares, though I suspect I could using classes and functions, it just seems like overkill. I dunno tho...
by sml
Fri Jul 28, 2006 12:39 am
Forum: Volume 109 (10900-10999)
Topic: 10929 - You can say 11
Replies: 69
Views: 27285

If you just add/substract alternative digits and chek the final sum, then leading zeroes are not supposed to create any problem. Why are a lot of people so worried about the leading zeroes ? Because a lot of us were checking input[0] for '0', and exiting the program in the event that it was true. I...
by sml
Tue Jul 25, 2006 8:30 am
Forum: Off topic (General chit-chat)
Topic: Carlos what is your avatar of?
Replies: 0
Views: 1688

Carlos what is your avatar of?

Looks like a cool anime/manga.
by sml
Mon Jul 24, 2006 3:42 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 37472

noskipws doesn't seem to work for me either, but I used getline() for this particular problem. That's how you want to do it anyway... (if you want to work on char *'s just copy the string with c_str()).
by sml
Mon Jul 24, 2006 3:37 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 37472

272 PE

How come this code gets Presentation Error? Is it because I'm using too many standard functions or are just doing something evil that I shouldn't be doing? TIA.

OMG! It was a spare \n at the end of the output! Holy crap this thing is seriously particular. :D

Thanks anyway guys.

Go to advanced search