摘要: 题目的大意是:给定1*2的小矩形,去拼接一个4*n(n 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define MAXN 410 #define MAXM 411 12 int Mod;13 struct Matrix {14 int n, m;15 int a[MAXN][MAXM];16 Matrix(int n_, int m_) {17 n = n_;18 m = m_;19 ... 阅读全文
posted @ 2014-01-22 15:22 ygcfws 阅读(145) 评论(0) 推荐(0)
摘要: 1 #include //开关问题 2 #include 3 #include 4 #include 5 #include 6 #define MAXN 31 7 using namespace std; 8 9 int a[31][31], n, b[31], c[31];10 inline void swap(int &x, int &y) { x=x^y;y=x^y;x=x^y;}11 int gauss() {12 int i, j, k;13 for( i = 0, j = 0; i < n && j < n; j++ )14 {15 .. 阅读全文
posted @ 2014-01-22 10:11 ygcfws 阅读(184) 评论(0) 推荐(0)
摘要: 1 The time of a day 2 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others) 3 Total Submission(s): 742 Accepted Submission(s): 327 4 5 6 7 8 Problem Description 9 There are no days and nights on byte island, so the residents here can hardly determine the length ... 阅读全文
posted @ 2013-05-23 16:59 ygcfws 阅读(114) 评论(0) 推荐(0)