2012年5月12日
摘要: POJ_2065 题目既然没有说无解的情况就当做一定有解来看待了,根据题意可以列出n个同余方程,然后用高斯消元+拓展欧几里得求得每个ai就可以了。#include<stdio.h>#include<string.h>#include<iostream>#define MAXD 80using namespace std;int mat[MAXD][MAXD], N, P, ans[MAXD];char b[MAXD], ch[128];void prepare(){ int i; for(i = 'a'; i <= 'z' 阅读全文
posted @ 2012-05-12 13:30 Staginner 阅读(191) 评论(0) 推荐(0) 编辑