Search found 2 matches

by raygun
Mon Jul 30, 2007 11:10 am
Forum: Volume 1 (100-199)
Topic: 133 - The Dole Queue
Replies: 42
Views: 10698

133 problem description

Question about problem 133:
- What effect does "m" have on the solution? A full test search on the problem description doesn't show any information about this variable.

Can't be too cautious with these problems..
by raygun
Wed May 10, 2006 2:41 am
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 35684

Re: 382 WA

I noticed that you have a presentation error - there are supposed to be two spaces. Even if you fix the program bug, you'll still miss out.


gets(str);
l=strlen(str);
sum=0;val=10;j=0;
for(i=0;i<l;i++)
{
if(str[i]>='0'&&str[i]<='9')
{
sum=sum*val+int(str[i])-48;
}
else
{
copy[j]=sum ...

Go to advanced search