摘要: A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A f(n 1) + B f(n 2)) mod 7. Given A, B, and n, you are to calculate the value of 阅读全文
posted @ 2017-11-19 19:56 Zireael 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Farmer John is assigning some of his N (1 include include using namespace std; const int maxn=3e4; struct shift { int beg,end; bool operator a.end:beg 阅读全文
posted @ 2017-11-19 10:09 Zireael 阅读(141) 评论(0) 推荐(0) 编辑