上一页 1 ··· 9 10 11 12 13
摘要: 1 #include 2 int f1(int a,int b) //最大公约数 3 { 4 if(a % b == 0) return b; 5 else 6 return f1(b,a%b); 7 } 8 int f2(int a,int b) //最小公倍数 9 { 10 int g; 11 g=a*b/f1(a,... 阅读全文
posted @ 2016-07-20 09:36 野小子& 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int f1(int a,int b) //最大公约数 3 { 4 if(a % b == 0) return b; 5 else 6 return f1(b,a%b); 7 } 8 int f2(int a,int b) //最小公倍数 9 { 10 int g; 11 g=a*b/f1(a,... 阅读全文
posted @ 2016-07-20 09:21 野小子& 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 struct stude 6 { 7 char a[100]; 8 int b; 9 int l; 10 } stu[400],stu1[400]; 11 bool nam(stude a,stude b) 12 { 13 if(... 阅读全文
posted @ 2016-07-20 09:04 野小子& 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Description Ignatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds of milk in the s 阅读全文
posted @ 2016-07-19 17:59 野小子& 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 每天第一个到机房的人要把门打开,最后一个离开的人要把门关好。现有一堆杂乱的机房签 到、签离记录,请根据记录找出当天开门和关门的人。 每天第一个到机房的人要把门打开,最后一个离开的人要把门关好。现有一堆杂乱的机房签 到、签离记录,请根据记录找出当天开门和关门的人。 每天第一个到机房的人要把门打开,最后 阅读全文
posted @ 2016-07-19 11:58 野小子& 阅读(335) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13