聪明的火鸡,自命题

//
//  main.c
//  wangdao-datastructure
//
//  Created by sun-weitao on 2023/7/22.
//


#include 
#include 
#include 
#define LIVE 1
#define DIE 0
#define N 100
struct trukey{
    int num;
    int state;
};

struct trukey* killTrukey(struct trukey* t,int len)
{
    if(len > 2){
        struct trukey* liveTrukey = malloc((len / 2) * sizeof(struct trukey));
        int j = 0;
        for(int i = 0;inum,l->state);
        
    return 0;
}

你可能感兴趣的:(算法,数据结构)