摘要:
#include#includechars[11000],t[1100000];intnext[11000];voidgetkmp(intlen) {intj,k;next[0]=-1;j=0;k=-1;while(j<len) {if(k==-1||s[k]==s[j]) {j++;k++;if(... 阅读全文
摘要:
#include#include#include#define N 200double co(double a,double b) { return (a-b)*(a-b);}struct node { double x,y,z,r;}a[N];struct nodee{ double len; i... 阅读全文
摘要:
#include#define N 30int visit[N];struct node { int prenum,index,count,pre;}a[N];int b[N];int main() { int t,m,n,i,j,k,sum; scanf("%d",&t); while(t--) ... 阅读全文