2017年1月9日

1001. A+B Format (20)

摘要: 题意:两个数求和,对于和从后往前每3个数输出一个",",直到剩余的数小于4. 解题思路:用字符串模拟整数进行操作。 用到C++ string中的insert函数在指定位置插入一个字符 insert有2个参数:第一个为迭代器的位置 第二个为要在该位置插入的字符。 和分情况讨论: 1. 为0 直接输出0 阅读全文

posted @ 2017-01-09 00:52 于无声出听惊雷 阅读(106) 评论(0) 推荐(0) 编辑

2016年12月24日

查看mysql的注册表路径

摘要: 原文地址:http://www.cppblog.com/lanshengsheng/archive/2012/11/23/195592.html 阅读全文

posted @ 2016-12-24 21:36 于无声出听惊雷 阅读(405) 评论(0) 推荐(0) 编辑

win10 64位安装mysql

摘要: 原文地址:http://blog.csdn.net/kingyumao/article/details/51925795 阅读全文

posted @ 2016-12-24 21:33 于无声出听惊雷 阅读(90) 评论(0) 推荐(0) 编辑

2016年12月14日

[POLITICS] S Korea lawmakers vote to impeach leader

摘要: South Korea's Parliament has voted to impeach President Park Geun-hye. The National Assembly motion passed by 234 votes to 56, meaning some members of 阅读全文

posted @ 2016-12-14 21:36 于无声出听惊雷 阅读(178) 评论(0) 推荐(0) 编辑

5-17 Hashing (25分)

摘要: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. 阅读全文

posted @ 2016-12-14 09:07 于无声出听惊雷 阅读(300) 评论(0) 推荐(0) 编辑

2016年12月13日

PTA 5-14 电话聊天狂人 (25分)

摘要: 给定大量手机用户通话记录,找出其中通话次数最多的聊天狂人。 输入格式: 输入首先给出正整数NN(\le 10^5≤10​5​​),为通话记录条数。随后NN行,每行给出一条通话记录。简单起见,这里只列出拨出方和接收方的11位数字构成的手机号码,其中以空格分隔。 输出格式: 在一行中给出聊天狂人的手机号 阅读全文

posted @ 2016-12-13 11:54 于无声出听惊雷 阅读(2003) 评论(1) 推荐(0) 编辑

2016年12月10日

PTA 5-15 PAT Judge (25分)

摘要: /* * 1.主要就用了个sort对结构体的三级排序 */ #include "iostream" #include "algorithm" using namespace std; int perfectScore[6]; struct Node { int id; int score[6] = {-2,-2,-2,-2,-2,-2}; /* 记录每一题的分数 初始化为-2... 阅读全文

posted @ 2016-12-10 23:24 于无声出听惊雷 阅读(377) 评论(0) 推荐(0) 编辑

5-13 统计工龄 (20分)

摘要: 给定公司NN名员工的工龄,要求按工龄增序输出每个工龄段有多少员工。 输入格式: 输入首先给出正整数NN(\le 10^5≤10​5​​),即员工总人数;随后给出NN个整数,即每个员工的工龄,范围在[0, 50]。 输出格式: 按工龄的递增顺序输出每个工龄的员工个数,格式为:“工龄:人数”。每项占一行 阅读全文

posted @ 2016-12-10 10:39 于无声出听惊雷 阅读(993) 评论(0) 推荐(0) 编辑

1098. Insertion or Heap Sort (25)

摘要: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文

posted @ 2016-12-10 10:09 于无声出听惊雷 阅读(218) 评论(0) 推荐(0) 编辑

PAT 1089. Insert or Merge (25)

摘要: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文

posted @ 2016-12-10 00:48 于无声出听惊雷 阅读(1159) 评论(0) 推荐(0) 编辑

导航