算法
oioihoii
个人公众号“Further Step”,欢迎大家搜索关注,对博文有任何问题也可以关注公众号询问。
展开
-
字符串处理-记录一句话中各个单词的长度(空格的特殊处理与单词长度统计)
分类:字符串处理关键字:字符串、空格、末尾‘,’输出处理截图如下:题目要求:代码如下:#include<iostream>#include<stdio.h>#include<string.h>using std::cout;//using namespace std; //以上三行可以用using namespace std;代替int main(){ char s[100...原创 2020-07-06 10:55:00 · 222 阅读 · 0 评论 -
Quicksum,入门级算法
Problem DescriptionA checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is changed, the checksum will also change, so checksums are often u原创 2017-11-19 23:20:16 · 630 阅读 · 0 评论