Search found 6 matches

by Ahmad93
Fri Jul 25, 2014 8:36 pm
Forum: Volume 108 (10800-10899)
Topic: 10815 - Andy's First Dictionary
Replies: 116
Views: 48817

Re: 10815 - Andy's First Dictionary

What a foolish of me! That unnecessary 'return 100' in my strcmp is giving me successive wrong answers!
Thanks a lot to you lighted.:D
by Ahmad93
Fri Jul 25, 2014 10:55 am
Forum: Volume 108 (10800-10899)
Topic: 10815 - Andy's First Dictionary
Replies: 116
Views: 48817

Re: 10815 - Andy's First Dictionary

What's wrong with my code? I am getting wrong answer. :oops:

Code: Select all

 Code removed after AC

by Ahmad93
Thu Jul 24, 2014 10:16 am
Forum: Volume 2 (200-299)
Topic: 282 - Rename
Replies: 19
Views: 11712

Re:

My AC program produces the same output. Try this input:


ab
abab
end
rename ab*ab asd*asd
end

output:
rename ab*ab asd*asd
mv abab asdasd


Can anybody explain the output further? What will be the output of this command: rename ab*cdef ghi*jkl ?
And will I have to check blank spaces in the ...
by Ahmad93
Tue Apr 08, 2014 10:32 am
Forum: Volume 106 (10600-10699)
Topic: 10608 - Friends
Replies: 75
Views: 39522

Re: 10608 - Friends

A lot of thanks to you brianfry713. Got accepted. :D
by Ahmad93
Sun Apr 06, 2014 4:05 pm
Forum: Volume 106 (10600-10699)
Topic: 10608 - Friends
Replies: 75
Views: 39522

Re: 10608 - Friends

if M == 0 print 1.
Thank you brianfry713. That was a great mistake. I have corrected my code. But still getting wrong answer. I failed to figure out the mistake.

#include<stdio.h>

int member[15001],a[30001];
void main()
{
int i, j, A, B, N, M, test,maxNum,max,group;
scanf("%d", &test);
while ...
by Ahmad93
Wed Mar 05, 2014 6:50 pm
Forum: Volume 106 (10600-10699)
Topic: 10608 - Friends
Replies: 75
Views: 39522

Re: 10608 - Friends

My code shows correct output but still getting wrong answer. :oops: Please help.
#include<stdio.h>
int group[500001],a[30001];
void main()
{
int i, j, k, l, n, m, test,maxNum,max,len;
scanf("%d", &test);
while (test--)
{
scanf("%d %d", &n, &m);

for (i = 1; i <= n; i++)a[i] = 0;

len = 1 ...

Go to advanced search