Search found 150 matches

by plamplam
Wed Jul 27, 2011 4:39 pm
Forum: Bugs and suggestions
Topic: Spammers Everywhere!
Replies: 6
Views: 6608

Re: Spammers Everywhere!

Hmmm...I see...anyway thanks for the reply.
by plamplam
Wed Jul 27, 2011 4:37 pm
Forum: Volume 117 (11700-11799)
Topic: 11787 - Numeral Hieroglyphs
Replies: 6
Views: 3149

Re: 11787 - Numeral Hieroglyphs

Some inputs: 20 B BB BBBBBBBBBB BUUB TM MTFM MTFPSB MFTSB BUSPMT UUUBBBUUUUUUUUUU BUSPFTMMMMMMMMMM BBBBBBBBBBUUUUUUSSS BBBBBBBBBUUUUUUSSS BUUUUUUUUUUB BUUUUUUUUUB BUUUUUUUUUSP BUUUUUUUUU PPPPSSSSSSUUUUUBBBBBB PPPPSSSSSSUUUUFUBBBBBB BBBUSSSPFFFM 1 2 error error 1100000 error 1111101 error error error...
by plamplam
Tue Jul 26, 2011 2:38 pm
Forum: Volume 9 (900-999)
Topic: 974 - Kaprekar Numbers
Replies: 32
Views: 12021

Re: 974 - Kaprekar Numbers

You don't need to send a table, my brute force algorithm gets AC in 0.036 seconds :D
by plamplam
Sun Jul 24, 2011 10:54 pm
Forum: Bugs and suggestions
Topic: Spammers Everywhere!
Replies: 6
Views: 6608

Spammers Everywhere!

I know UVA admins are working hard in order to maintain this site, and of course I do appreciate it. However, I am sorry to say that I believe this site is no longer a forum anymore. There are spammers everywhere around. Download blood diamond for free hd buy viagra at only $5.99 etc etc. These user...
by plamplam
Sat Jul 23, 2011 10:08 pm
Forum: Volume 114 (11400-11499)
Topic: 11452 - Dancing the Cheeky-Cheeky
Replies: 7
Views: 4089

Re: 11452 - Dancing the Cheeky-Cheeky

Code: Select all

7
112231112231112
1122311122311
111
11111211111211111
41241222234123412311123141213121212124124122223412341231112314121312121212412412222341234123111231412
12121212121212121212121212121212
123443211234432112344

Code: Select all

23111223...
12231112...
11111111...
21111121...
13121212...
12121212...
32112344...
by plamplam
Fri Jul 22, 2011 7:23 pm
Forum: Bugs and suggestions
Topic: 139 - Telephone Tangles PE is treated as WA??
Replies: 0
Views: 1319

139 - Telephone Tangles PE is treated as WA??

Hi there, I would like to make a suggestion. Problem 139 - Telephone Tangles. In this problem, I think the judge treats every PE as WA(because no one got a PE in its stats). The problem description is not clear, and the output format is not clear at all. Please can someone change the output format o...
by plamplam
Fri Jul 22, 2011 1:13 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 27122

Re: 492 - Pig Latin

This is very important A "word'' is defined as a consecutive sequence of letters (upper and/or lower case). This means words can be separated by anything else other than alphabets. I solved this problem using getchar() as well as using gets(). If you use gets, your array size must be very huge(or el...
by plamplam
Thu Jul 21, 2011 9:42 pm
Forum: Volume 101 (10100-10199)
Topic: 10115 - Automatic Editing
Replies: 29
Views: 9814

Re: 10115 - Automatic Editing

I'm so steamed up over this problem :oops: :( ....A very easy problem and I got Accepted in first try. However, my code(I coded it in C) although getting a direct Accepted in cpp, always gets Runtime Error in C. Can anyone explain why this is so? What can be the reason? An advanced thanks for helpin...
by plamplam
Thu Jul 21, 2011 3:18 pm
Forum: Volume 101 (10100-10199)
Topic: 10191 - Longest Nap
Replies: 75
Views: 29551

Re: 10191 - Longest Nap

Quite a cushy problem I must say. There won't be any cases like 0 (Although it is a valid case IMAO) (Trust me, my program prints garbage if n is 0, I still got Accepted). Also, there is always going to be a single space between the starting and finishing time. And appointment times doesn't overlap,...
by plamplam
Wed Jul 20, 2011 10:18 pm
Forum: Volume 106 (10600-10699)
Topic: 10698 - Football Sort
Replies: 23
Views: 7864

Re: contest 2004-8-7 problem C - Football Sort

The problem-setter is a couch potato, very dull and anooying problem description. I had a hard time counting all the spaces and shit...got PE twice before Accepted. My output format is: if I am printing team position: printf("%2d.%16s%4d%4d%4d%4d%4d "); etc etc... else printf("%19s%4d%4d%4d%4d%4d ")...
by plamplam
Wed Jul 20, 2011 2:05 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29943

Re: 10215 - The Largest/Smallest Box...

Thanks a lot jan....forgot to add 1e-8 before :x :x
by plamplam
Sat Jul 16, 2011 4:04 pm
Forum: Volume 119 (11900-11999)
Topic: 11933 - Splitting Numbers
Replies: 3
Views: 3383

11933 - Splitting Numbers

Alright Im writing this post because this problem gave me quite a headache at first. The problem description is very unclear and it is hard to understand how to get the two numbers a and b from n(atleast it was difficult for me). Anyway the problem is really very easy if you understand what you have...
by plamplam
Fri Jul 15, 2011 1:10 pm
Forum: Volume 119 (11900-11999)
Topic: 11945 - Financial Management
Replies: 10
Views: 5270

Re: 11945 - Financial Management

Try this 8 100.00 489.12 12454.12 1234.10 823.05 109.20 5.27 1542.25 839.18 83.99 1295.01 1.75 100000.00 489120.00 12454120.00 1234100.00 823050.00 109200.00 5270.00 1542250.00 839180.00 83990.00 1295010.00 1750.00 0.00 0.50 0.50 0.50 0.00 0.00 0.50 0.00 0.50 0.00 0.00 0.50 0.00 0.50 0.50 0.50 0.00 ...
by plamplam
Thu Jul 14, 2011 10:29 pm
Forum: Volume 103 (10300-10399)
Topic: 10361 - Automatic Poetry
Replies: 25
Views: 12655

Re: 10361 - Automatic Poetry

@Imti....your solution is not supposed to get Accepted. I guess the judge input is very weak...The correct output should be

Code: Select all

it is meok yes!
ami .. eta yesok me!
nvm....
by plamplam
Thu Jul 14, 2011 10:26 pm
Forum: Volume 103 (10300-10399)
Topic: 10361 - Automatic Poetry
Replies: 25
Views: 12655

Re: 10361 - Automatic Poetry

"The second line will be a string of lowercase characters or blanks ending with three dots ...". You don't need to check for dots.

Code: Select all

len = strlen(second_string);
for (j = 0; j < len - 3; j++){
    printf("%c", second_string[j]);
}

Go to advanced search