Search found 18 matches

by hoimo
Fri Apr 03, 2015 8:58 pm
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 56775

Re: 727 - Equation

Plz hlp.
Why RTE!


#include<stdio.h>
#include<string.h>

int i,j,cas;
char c, stk[100],p[100];
int main()
{
scanf("%d",&cas);
getchar();
getchar();

while( cas-- )
{
c=getchar();
i=1;
j=0;
stk[0]='0';

while( c!='\n' )
{
getchar();
if( c=='(' ){
stk[i++]=c;
}

else if( (c-'0')>=0 ...
by hoimo
Fri Jan 17, 2014 9:38 pm
Forum: Volume 105 (10500-10599)
Topic: 10589 - Area
Replies: 48
Views: 26102

Re: 10589 - Area

many many thnx & sorry 4 my late rply.
:)
by hoimo
Tue Jan 14, 2014 11:14 pm
Forum: Volume 105 (10500-10599)
Topic: 10589 - Area
Replies: 48
Views: 26102

Re: 10589 - Area

@ brianfry713, plz help.
i am getting WA in this problem.
but i cant find my problem.
thanx in advance.
by hoimo
Mon Jan 13, 2014 9:34 am
Forum: Volume 105 (10500-10599)
Topic: 10589 - Area
Replies: 48
Views: 26102

Re: 10589 - Area

plz reply:(
by hoimo
Mon Jan 06, 2014 1:53 pm
Forum: Volume 105 (10500-10599)
Topic: 10589 - Area
Replies: 48
Views: 26102

Re: 10589 - Area

Why submiision err? plz help.
#include<stdio.h>
#include<math.h>
int main()
{
int N, a, i, M, sq;
double x, y;
double hf, rt, minusrt;

while( scanf("%d %d", &N, &a)==2 && N!=0 )
{
M=0;
sq=a*a;
for( i=0;i<N;i++ ){
scanf("%lf %lf", &x, &y);

hf=a/2;
rt=sqrt( a*a-hf*hf );
minusrt=a-rt ...
by hoimo
Wed Dec 18, 2013 3:27 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83871

Re: UVA 10070

thank you so much.
i got ac with the help of u. thanx.
by hoimo
Wed Dec 18, 2013 3:25 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83871

Re: 10070 - Leap Year or Not Leap Year and ...

Thank u so much that reply.
I got AC.
I dont know why i didn't noticed that.
thanx. :D :lol:
by hoimo
Mon Dec 16, 2013 4:05 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83871

Re: UVA 10070

here is my code.
#include<stdio.h>
#include<string.h>
char yearch[100000000];
int yearint[100000000];

int main()
{
int hulu, bulu, flg, line=0, add, temp, diff;
int d3, d4, d5, d11, d55;
int i, len, frst, lst, lstp;

while( scanf("%s",yearch) != EOF )
{
d5=1;
hulu=bulu=flg=0;

if(line ...
by hoimo
Mon Dec 16, 2013 3:51 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83871

Re: UVA 10070

My code gives right answer for every input given here.
but still WA.
Plz help. thanx in advance. :roll:
by hoimo
Sun Dec 15, 2013 4:13 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83871

Re: 10070 - Leap Year or Not Leap Year and ...

what's the problem with my code?
code deleted.
plz help.
by hoimo
Sun Dec 08, 2013 6:45 am
Forum: Volume 3 (300-399)
Topic: 306 - Cipher
Replies: 74
Views: 31222

Re: 306 Cipher (WA)

What should i do?
Is there is any problem with logic?
by hoimo
Sun Dec 08, 2013 6:44 am
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 43212

Re: 10279 - Mine Sweeper

Thnx. I got AC.
by hoimo
Sun Dec 08, 2013 6:42 am
Forum: Volume 3 (300-399)
Topic: 306 - Cipher
Replies: 74
Views: 31222

Re: 306 Cipher (WA)

What should i do?
Is there is any problem with logic?
by hoimo
Tue Dec 03, 2013 5:59 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 43212

Re: 10279 - Mine Sweeper

Plz help me. I cant understand why its WA?
#include<stdio.h>

int main()
{
int m, n, i, j, cnt[150], pnt, ans[11][11], k, l, flg;
char str[11][11], prnt[11][11];

scanf("%d", &n);
while( n-- )
{
printf("\n");
scanf("%d",&m);
for( i=0; i<m; i++ )
scanf("%s",str[i]);
for( i=0; i<m; i ...
by hoimo
Tue Dec 03, 2013 6:27 am
Forum: Volume 3 (300-399)
Topic: 306 - Cipher
Replies: 74
Views: 31222

Re: 306 Cipher (WA)

Thanx 4 reply.
I've changed my code as below but now its RUNTIME ERROR.
#include<stdio.h>
#include<string.h>

int main()
{
int inp[202], n, i, j, k, range, cnt, len;
char str[202], rep[202];
int store[202][1000], pnt;

for( i=0; i<203; i++ )
store[0][i]=i;

while(scanf("%d", &n) == 1)
{
if ...

Go to advanced search