ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1545. Hieroglyphs

whats wrong and whats test 10
Posted by garra 30 May 2012 23:15
#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main()
{
int n,i,j=0;
char a[100][4];
char b;

scanf("%d",&n);
for(i=0;i<=n;i++)
{
gets(a[i]);
}

scanf("%c",&b);

  for(i=0;i<=n;i++)
  {
 if(a[i][j]==b)
  {
  puts(a[i]);
  }
  }




return 0;

}
Re: whats wrong and whats test 10
Posted by Erop [USU] 31 May 2012 00:00
there can be more than 100 hieroglyphs
Re: whats wrong and whats test 10
Posted by garra 31 May 2012 21:47
thanks got an ac