摘要:
枚举m,n^2判断对于野人i,j,(H[i]+x*S[i])%m==(H[j]+x*S[j])%m,且x#include#include#include#include#define N 18using namespace std;int H[N],S[N],O[N]... 阅读全文
摘要:
ans=所有的三点排列-共行的-共列的-斜着一条线的斜着的枚举每个点和原点的gcd,反过来也可以,还能左右,上下挪#include#include#include#include#includelong long ans,line,row,tot,n,m;int gc... 阅读全文
摘要:
搞了一整个晚自习,只是看懂了dalao们的博客,目前感觉没有思路….还是要多切题 next day: 刚才又推了一遍,发现顺过来了,hahaha#include#include#include#include#includeusing namespace std;co... 阅读全文