
ACM_字符串
文章平均质量分 75
张思瑶126
If you think you can , you can !
不怕千万人阻挡,只怕自己投降 !
展开
-
string和stringstream用法总结
原文网址:http://blog.youkuaiyun.com/xw20084898/article/details/21939811一、stringstring 是 C++ 提供的字串型態,和 C 的字串相比,除了有不限长度的优点外,还有其他许多方便的功能。要使用 string, 必須先加入这一行:#include 接下來要宣告一个字串变量,可以写成:stri转载 2015-08-21 23:24:11 · 3418 阅读 · 0 评论 -
字符串比对 (strstr)
题目标题:字符串比对题目描述:有字符串a(长度输入描述:输入为两个字符串,第一个字符串长度小于100,第二个字符串长度小于10;输出描述:输出为一个正整数;样式输入:abcdefghijklmnababcdeabcabc样式输出:3这题目挺水的,直接暴力很简单,我写出来的目的是想提一下strst原创 2015-09-11 21:12:39 · 1240 阅读 · 0 评论 -
NBUT 1450 Blitzcrank
[1450] Blitzcrank时间限制: 1000 ms 内存限制: 65535 K问题描述Blitzcrank is a robot.There are some pretty good registers(寄存器) in Blitzcrank's body.There are some instructions about register A原创 2015-08-22 00:05:48 · 1776 阅读 · 4 评论 -
HDU 5082 Love
LoveTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 763 Accepted Submission(s): 455Problem DescriptionThere is a Love country原创 2015-08-21 10:30:02 · 665 阅读 · 0 评论 -
打印 0 1 字符串(五位)
// 方法一:暴力(这个可以有)#include using namespace std;int main(){ cout<<"00000"<<endl; cout<<"00001"<<endl; cout<<"00010"<<endl; cout<<"00011"<<endl; cout<<"00100"<<endl; cout<<"001原创 2015-08-18 22:45:44 · 634 阅读 · 0 评论 -
NBUT 1219 Time
[1219] Time时间限制: 1000 ms 内存限制: 131072 K问题描述Digital clock use 4 digits to express time, each digit is described by 3*3 characters (including”|”,”_”and” “).now given the current time, plea原创 2015-08-18 14:53:13 · 624 阅读 · 0 评论 -
NBUT 1217 Dinner
[1217] Dinner时间限制: 1000 ms 内存限制: 32768 K问题描述Little A is one member of ACM team. He had just won the gold in World Final. To celebrate, he decided to invite all to have one meal. As bowl, kni原创 2015-08-18 14:16:48 · 679 阅读 · 0 评论 -
Tyvj P1082 找朋友
一开始想到的是直接排序,结果超时了,代码如下:#include #include #include #include #include #include #include using namespace std;const int maxn=10000+10;int n,shu[maxn];char ren[maxn][50],s[50];int main(){原创 2015-07-24 13:06:44 · 649 阅读 · 0 评论 -
NBUT 1220 SPY
[1220] SPY时间限制: 1000 ms 内存限制: 131072 K问题描述The National Intelligence Council of X Nation receives a piece of credible information that Nation Y will send spies to steal Nation X’sconf原创 2015-08-18 20:12:39 · 1047 阅读 · 0 评论 -
NBUT 1452 Ezreal
[1452] Ezreal时间限制: 1000 ms 内存限制: 65535 K问题描述There are a LCD (Liquid Crystal Display) on Ezreal's arm. The LCD is composed of liquid crystal, and the LCD is 16 lines and 48 rows. Ho原创 2015-08-22 23:40:13 · 710 阅读 · 0 评论