自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 1028 人口普查 (20 分)

#include<bits/stdc++.h> using namespace std; struct people{ char name[7]; int old; }stu[5]; long long convert(int year,int month,int day){ return year*10000+month*100+day; } int main(){ int n,cnt=0;//1814,9,6----2014,9,6 int t.

2021-04-13 21:17:39 53

原创 1009 Product of Polynomials (25 分)

解题代码: #include<bits/stdc++.h> using namespace std; struct polynomials{ int expn; double coef; }poly_1[13],poly_2[13],poly_3[2003]; int main(){ int n1,n2; scanf("%d",&n1); for(int i=0;i<n1;i++)scanf("%d%lf",&poly_1[i].

2021-04-10 21:53:29 47

原创 1002 A+B for Polynomials (25 分)

1002 A+B for Polynomials (25 分) 解题代码: #include<bits/stdc++.h> using namespace std; struct polynomials{ int expn; double coef; }poly_1[13],poly_2[13],poly_3[23]; int main(){ int n1,n2; scanf("%d",&n1); for(int i=0;i<n1;i+

2021-04-10 21:25:47 51

原创 问题 I: 锤子剪刀布

大家应该都会玩“锤子剪刀布”的游戏:两人同时给出手势,现给出两人的交锋记录,请统计双方的胜、平、负次数,并且给出双方分别出什么手势的胜算最大。 输入 输入第1行给出正整数N(<=105),即双方交锋的次数。随后N行,每行给出一次交锋的信息,即甲、乙双方同时给出的的手势。C代表“锤子”、J代表“剪刀”、B代表“布”,第1个字母代表甲方,第2个代表乙方,中间有1个空格。 输出 输出第1、2行分别给出甲、乙的胜、平、负次数,数字间以1个空格分隔。第3行给出两个字母,分别代表甲、乙获胜次数最多的手势,中间有1

2021-04-07 00:14:15 71

原创 问题 G: 数字分类

问题 G: 数字分类 题目描述 给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字: A1 = 能被5整除的数字中所有偶数的和; A2 = 将被5除后余1的数字按给出顺序进行交错求和,即计算n1-n2+n3-n4…; A3 = 被5除后余2的数字的个数; A4 = 被5除后余3的数字的平均数,精确到小数点后1位; A5 = 被5除后余4的数字中最大数字。 输入 每个输入包含1个测试用例。每个测试用例先给出一个不超过1000的正整数N,随后给出N个不超过1000的待分类的正整数。数字间以空格分隔。

2021-04-06 21:38:14 70

原创 Course List for Student

Course List for Student 题目描述 Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes for a query. 输入 Each input

2021-04-03 15:14:20 125

原创 算法笔记Shortest Distance

算法笔记Shortest Distance 题目描述 The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits. 输入 Each input file contains one test case. For each case, the first line

2021-04-01 22:47:37 96

原创 算法笔记,简单模拟A+B

算法笔记,简单模拟A+B 给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。 现在请计算A+B的结果,并以正常形式输出。 输入 输入包含多组数据数据,每组数据占一行,由两个整数A和B组成(-10^9 < A,B < 10^9)。 输出 请计算A+B的结果,并以正常形式输出,每组数据占一行。 样例输入 -234,567,890 123,456,789 1,234 2,345,678 样例输出 -111111101 2346912 #include<bits/stdc++

2021-03-30 23:18:42 99

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除