Search found 4 matches

by riisiingsun
Tue Oct 20, 2009 9:15 pm
Forum: Volume 105 (10500-10599)
Topic: 10596 - Morning Walk
Replies: 41
Views: 21069

Re: 10596 - Morning Walk

After getting a lot of WA finally i solved... :D
Some instructions to new solver:
1. consider graph as bidirectional
2. need not to visit those vertices's which have no edge. u can ignore those. Exception if r != 0 !!
3. must have to visit all edges (Eulerian cycle)

consider these test cases ...
by riisiingsun
Mon Apr 07, 2008 10:26 pm
Forum: Volume 102 (10200-10299)
Topic: 10209 - Is This Integration ?
Replies: 37
Views: 15985

10209 equations

for prob 10209
3rd eqn: 2x+y+z=(pi/3 - sqrt(3)/4)a^2
tri.JPG
tri.JPG (35.27 KiB) Viewed 3203 times
2x+y+z
= ((1/2) * s * a) - ((1/2) * c * (a/2))
= yellow shade of circle
= ((1/2) * a * (2/3) * pi * a) - (.5 * sqrt(3)*r * (r/2))
= ((1/3) * pi * a^2) - (sqrt(3)/4 r^2)
= ((1/3) * pi - sqrt(3)/4) * a^2
by riisiingsun
Fri May 18, 2007 9:17 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 37547

please help!!P.E in 190....

will any one please tell me why it is giving P.E?


#include<stdio.h>

int strlen(char str[])
{
int i;
for(i=0;str[i]!=NULL;i++);
return i;
}

void main()
{
int i=0,n,k,j,mxm=0;
char str1[200][200],str2[200][200];

while(gets(str1[i]))
{
k=strlen(str1[i]);
if(k>mxm)
mxm=k;
i++;

}

for ...
by riisiingsun
Fri May 18, 2007 9:07 pm
Forum: Volume 1 (100-199)
Topic: 192 - Synchronous Design
Replies: 11
Views: 4983

please Help me...output limit exceed in prob 192

can any one tell me what is the problem with my code? why it is showing output limit exceed? :evil:

[/code]
#include<stdio.h>

void main()
{
char ch,str1[2000000];
long int i;

while(scanf(" %[^\n]",str1)==1)
{
for(i=0;str1 !=NULL;i++)
{
if(str1 =='a' || str1 =='A' || str1 =='e'|| str1 =='E ...

Go to advanced search