摘要: http://poj.org/problem?id=3734 Description Panda has received an assignment of painting a line of blocks. Since Panda is such an intelligent boy, he s 阅读全文
posted @ 2018-10-30 20:10 丧心病狂工科女 阅读(233) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3268 Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party 阅读全文
posted @ 2018-10-30 20:07 丧心病狂工科女 阅读(199) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2253 Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on 阅读全文
posted @ 2018-10-30 20:05 丧心病狂工科女 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; const int mod = 1e9 + 7; int N; struct Matrix{ long long m[2][2]; }; Matrix Mul(Matrix A, Matrix B) { Matrix ret; for(int i = 0; i < 2; i ++) { f... 阅读全文
posted @ 2018-10-30 14:22 丧心病狂工科女 阅读(232) 评论(0) 推荐(0) 编辑