#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
char inp[500];
int test,i,k,cnt,t,n,j;
char ch;
scanf("%d",&test);
for(t=1;t<=test;t++)
{
memset(inp,0,sizeof(inp));
scanf("%d",&n);
scanf("%s",&inp);
cnt=0;
for(i=0;i<n;i++)
{
if(inp =='.' || inp =='#')
{
if((inp[i-1 ...
Search found 2 matches
- Sun Jan 08, 2012 2:26 pm
- Forum: Volume 124 (12400-12499)
- Topic: 12405 - Scarecrow
- Replies: 5
- Views: 4399
- Sun Jan 08, 2012 4:45 am
- Forum: Volume 124 (12400-12499)
- Topic: 12405 - Scarecrow
- Replies: 5
- Views: 4399
12405 - Scarecrow
please give me some sample input & output...
I got WA 3 times
I got WA 3 times
