hiho week 99 register

Ended

Participants:253

Verdict:Runtime Error
Score:0 / 100
Submitted:2016-05-23 10:29:26

Lang:GCC

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<stdio.h>
#include<malloc.h>
struct Board
{
    int b[8][8];
}b[3];
void BFS(int s,int x,int y);
void set(int s,int x,int y,int n);
int main()
{
     int t;
     int i,j=0;
     int *min;
     char a[6];
     scanf("%d",&t);
     min=malloc(t*sizeof(int));
     while(j<t)
     {
     for(i=0;i<6;i++)
     {
         scanf("%c",&a[i]);
         if(a[i]==' '||a[i]=='\n') i--;
     }
     for(i=0;i<3;i++)
     {
         switch(a[i*2])
         {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX