Search found 4 matches

by johncip
Sun May 11, 2014 2:22 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20270

Re: 490 - Rotating Sentence

Right, I meant ASCII null. I guess calling it "character zero" is confusing. Then again this is also null: ? :D
by johncip
Fri May 09, 2014 11:48 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20270

Re: 490 - Rotating Sentence

Got it now, thanks. I suppose now I'll be more careful about character zero. I like to use '\0' since it stands out more as a special value in the code, if that makes any sense. But it makes that sort of typo possible, so maybe it's not a great idea.
by johncip
Fri May 09, 2014 10:35 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20270

Re: 490 - Rotating Sentence

I had a typo when checking for character zero, meant '\0' but write '0'. And to top it off, I think that check was unnecessary (included it before I had hard grid bounds), so it wasn't doing anything but introducing the bug :( I'll get back to it once the queue clears, and hopefully that was the onl...
by johncip
Fri May 09, 2014 9:04 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20270

Re: 490 - Rotating Sentence

Anyone know if it's necessary to actually read in the newlines (like maybe the judge input has a mix of lines with and without carriage returns)? I'm doing it in Java and my output matches the sample output, with spaces to pad the ends of output lines (that is, I'm printing a perfect rectangle, boun...

Go to advanced search