2018年7月27日

17-比赛1 B - 子串计算 Chef and his string challenge (string的运用)

摘要: Chef's best friend Jerry gives Chef a string A and wants to know the number of string A that can be obtained from another string B. A is made up of un 阅读全文

posted @ 2018-07-27 19:52 短发控丶 阅读(229) 评论(0) 推荐(0) 编辑

2018年7月26日

ACM模板

摘要: 1 #include <iostream> //万能头文件#include<bits/stdc++.h> 方便时用 2 #include <algorithm> 3 #include <cmath> 4 #include <cstring> 5 #include <cstdio> 6 #includ 阅读全文

posted @ 2018-07-26 20:32 短发控丶 阅读(152) 评论(0) 推荐(0) 编辑

STL 入门 (17 暑假集训第一周)

摘要: 快速全排列的函数 头文件<algorithm> find 搜寻失败会返回 string::npos 的值 string 的 erase() 删除函数 一个应用的题目,暑假集训第一周比赛 :17-比赛1 B - 子串计算 string的运用 string类的构造函数: string(const cha 阅读全文

posted @ 2018-07-26 10:42 短发控丶 阅读(236) 评论(0) 推荐(0) 编辑

UVA 1594 Ducci Sequence(紫书习题5-2 简单模拟题)

摘要: A Ducci sequence is a sequence of n-tuples of integers. Given an n-tuple of integers (a1, a2, · · · , an), the next n-tuple in the sequence is formed 阅读全文

posted @ 2018-07-26 10:04 短发控丶 阅读(158) 评论(0) 推荐(0) 编辑

UVA 1593 Alignment of Code(紫书习题5-1 字符串流)

摘要: You are working in a team that writes Incredibly Customizable Programming Codewriter (ICPC) which is basically a text editor with bells and whistles. 阅读全文

posted @ 2018-07-26 09:14 短发控丶 阅读(341) 评论(0) 推荐(0) 编辑

导航