摘要:
#include<stdio.h>#definemaxsize100#defineinf10001inthill[maxsize+2][maxsize+2];intvis[maxsize+2][maxsize+2];constintdis[4][2]={{0,1},{0,-1},{1,0},{-1,0}};intDFS(intx,inty){inti;for(i=0;i<4;i+... 阅读全文
摘要:
#include <stdio.h> #include <stdlib.h> //due to:qsort#include <string.h> int n; int stick[100]; int total; int ns; //一共需要还原出的木棍数nsint ok; int len; //当次需要达到的长度int cmp(const void *a,co... 阅读全文