摘要:
You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two 阅读全文
摘要:
emmmm,重温usaco,然后这个智障模拟题的模拟做法,我WA了10发才对,这就很尴尬了,主要是判断条件出了很多锅,一会这个点WA,一会那个点的,要gg的节奏。 Three farmers rise at 5 am each morning and head for the barn to mil 阅读全文
摘要:
二.代码实现 1. int gcd(int a,int b) { int r; while(b) { r=a%b; a=b; b=r; } return a; } 2. int gcd(int a,int b) { return b==0?a:gcd(b,a%b); } 三.扩展欧几里得 int e 阅读全文