Moderator: Board moderators
soyoja wrote:Is there any critical input?
1
qweqweqwedadqweqweqwe
3
jan_holmes wrote:Try this input :
- Code: Select all
1
qweqweqwedadqweqweqwe
I think the output should be :
- Code: Select all
3
CMIW...
1312
ADAM
MADAM
qweqweqwedadqweqweqwe
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
abcdefghijklmnopqrstuvwxyz
abcdefhh
abcabcabc
0101010101
a
abefgba
3
5
0
13
0
255
1
2
5
9
1
5
Giorgi wrote:there is no critical input. what algorithm did you use?
got AC
artie wrote:Hi. I am newcomer in c++ language. I got ac in the contest with pascal, but same algorithm in c++ got wa. I wish somebody explain me, what is wrong in c++ code:
scanf("%d", &t);
gets(s);
while (t--) {
gets(s);
...
...
}helloneo wrote:artie wrote:Hi. I am newcomer in c++ language. I got ac in the contest with pascal, but same algorithm in c++ got wa. I wish somebody explain me, what is wrong in c++ code:
Taking input is faulty..
I don't know exactly what it is.. but try this..
- Code: Select all
scanf("%d", &t);
gets(s);
while (t--) {
gets(s);
...
...
}
Users browsing this forum: No registered users and 0 guests