Search found 9 matches

by imran_12
Mon Dec 08, 2014 7:10 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 45632

Re: 673 - Parentheses Balance(why getting WA?? )

here is my code....i dunno why i m getting WA?? plz somebody help.... :( :( #include<stdio.h> #include<string.h> int main() { char a[130],c; int n,j,i,flag,flagn,b; while(scanf("%d",&n)==1) { fflush(stdin); for(j=1;j<=n;j++) { flag=0; flagn=0; gets(a); b=strlen(a); for(i=0;i<b;i++) { if(a[i]=='(') {...
by imran_12
Sun Dec 07, 2014 5:18 pm
Forum: Volume 105 (10500-10599)
Topic: 10591 - Happy Number
Replies: 61
Views: 20857

Re: 10591 - Happy Number

i got this..i edited my code and got AC..but i have a question...plz ans me.. my question is : in my code i put the values that rayan kamal given as critical input..in there, these cases give "happy number" Case #28: 1111111 is a Happy number. Case #29: 10111111 is a Happy number. Case #30: 11110111...
by imran_12
Sun Dec 07, 2014 4:43 pm
Forum: Volume 105 (10500-10599)
Topic: 10591 - Happy Number
Replies: 61
Views: 20857

Re: 10591 - Happy Number

Code: Select all

Removed after AC
by imran_12
Thu Oct 23, 2014 7:02 pm
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6335

Re: 11636-Hello World

Got AC...silliest mistake ever...deleted just one symbol and it got accepted!!! :p
Thank u so much... :)
by imran_12
Wed Oct 22, 2014 7:35 pm
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6335

11636-Hello World

Code: Select all

Got AC...silliest mistake ever...deleted just one symbol and it got accepted!!! :p
Thank u so much... :)
by imran_12
Sat Sep 20, 2014 1:03 pm
Forum: Volume 103 (10300-10399)
Topic: 10346 - Peter's Smokes
Replies: 46
Views: 16046

10346- Peter's Smokes

I cant understand why i am getting WA.. plz help #include<stdio.h> int main() { int n,k,m,p; while(scanf("%d %d",&n,&k)==2) { m=n; if(k>1) { p=n%k; n=n/k; p=(p+n)/k; m=m+n+p; } printf("%d\n",m); } }
by imran_12
Fri Sep 19, 2014 1:39 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78752

Re: 10038- Jolly jumpers

thank u lighted...finally i got AC....and um now deleting my code... :D
by imran_12
Fri Sep 19, 2014 1:09 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78752

Re: 10038- Jolly jumpers

Got Ac
by imran_12
Fri Sep 19, 2014 8:21 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78752

10038- Jolly jumpers

Got Ac

Go to advanced search