07 2020 档案

Problem of Precision solution
摘要:question: InputThe first line of input gives the number of cases, T. T test cases follow, each on a separate line. Each test case contains one positiv 阅读全文

posted @ 2020-07-27 23:35 YovM_21 阅读(103) 评论(0) 推荐(0)

hdu-2255 D - 奔小康赚大钱 题解
摘要:question: 传说在遥远的地方有一个非常富裕的村落,有一天,村长决定进行制度改革:重新分配房子。这可是一件大事,关系到人民的住房问题啊。村里共有n间房间,刚好有n家老百姓,考虑到每家都要有房住(如果有老百姓没房子住的话,容易引起不安定因素),每家必须分配到一间房子且只能得到一间房子。另一方面, 阅读全文

posted @ 2020-07-26 23:10 YovM_21 阅读(196) 评论(0) 推荐(0)

hdu1325 Is It A Tree? solution
摘要:question: A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edge 阅读全文

posted @ 2020-07-26 20:17 YovM_21 阅读(137) 评论(0) 推荐(0)

hdu-1827 Summer Holiday solution
摘要:question: 听说lcy帮大家预定了新马泰7日游,Wiskey真是高兴的夜不能寐啊,他想着得快点把这消息告诉大家,虽然他手上有所有人的联系方式,但是一个一个联系过去实在太耗时间和电话费了。他知道其他人也有一些别人的联系方式,这样他可以通知其他人,再让其他人帮忙通知一下别人。你能帮Wiskey计 阅读全文

posted @ 2020-07-26 12:57 YovM_21 阅读(108) 评论(0) 推荐(0)

过河卒 题解
摘要:solution: #include<cstdio> using namespace std; long long f[40][40],flag[40][40]; int main() { int n,m,i,j,a,b; f[0][0]=1; scanf("%d%d%d%d",&n,&m,&a,& 阅读全文

posted @ 2020-07-21 21:31 YovM_21 阅读(157) 评论(0) 推荐(0)

You Are the One solution
摘要:question: The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the show itsel 阅读全文

posted @ 2020-07-17 20:40 YovM_21 阅读(152) 评论(0) 推荐(0)

D - 免费馅饼 solution
摘要:question: 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所 阅读全文

posted @ 2020-07-17 17:55 YovM_21 阅读(121) 评论(0) 推荐(0)

Find a way solution
摘要:question: Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Esp 阅读全文

posted @ 2020-07-17 16:57 YovM_21 阅读(140) 评论(0) 推荐(0)

A - String Distance and Transform Process solution
摘要:String Distance is a non-negative integer that measures the distance between two strings. Here we give the definition. A transform list is a list of s 阅读全文

posted @ 2020-07-14 17:36 YovM_21 阅读(186) 评论(0) 推荐(0)

入门训练 Fibonacci数列
摘要:#include<iostream> using namespace std; int F(int n) { int result[2] = {0,1}; if(n < 2) { return result[n]; } int f1 = 1; int f2 = 0; int f = 0; for(i 阅读全文

posted @ 2020-07-07 22:17 YovM_21 阅读(114) 评论(0) 推荐(0)

求平均成绩 题解
摘要:假设一个班有n(n<=50)个学生,每人考m(m<=5)门课,求每个学生的平均成绩和每门课的平均成绩,并输出各科成绩均大于等于平均成绩的学生数量。 Input输入数据有多个测试实例,每个测试实例的第一行包括两个整数n和m,分别表示学生数和课程数。然后是n行数据,每行包括m个整数(即:考试分数)。Ou 阅读全文

posted @ 2020-07-01 21:41 YovM_21 阅读(220) 评论(0) 推荐(0)

导航