摘要: View Code 1 #include<iostream> 2 #include<string.h> 3 #include<algorithm> 4 #include<cstdio> 5 #include<cstdlib> 6 #include<cstring> 7 8 using namespace std; 9 10 int n;11 char b[101];12 char bf[101];13 14 15 void change(int i,int k)16 {17 int q=i,e=0,y;18 if(k< 阅读全文
posted @ 2012-07-14 20:49 kaisadadi 阅读(148) 评论(0) 推荐(0) 编辑
摘要: TransformationsA square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum transformation that has been applied to the original pattern given the following list of possible transformation 阅读全文
posted @ 2012-07-14 15:01 kaisadadi 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at time 1000. The second farmer begins at time 700 and ends at time 1200. The third farmer begins at time 1500 a 阅读全文
posted @ 2012-07-14 12:12 kaisadadi 阅读(159) 评论(0) 推荐(0) 编辑