字符串****************
「已注销」
我的目标 离我还有多远我的梦想 有点遥不可及我要用十倍苦心做最突出一个我不能退缩 不管路多艰难 我都要努力我要靠自己的双手去做自己喜欢做的事我要靠自己的努力去我想去的地方旅游我还年轻 我还可以去奋斗
展开
-
hdu1230-火星A+B
http://acm.hdu.edu.cn/showproblem.php?pid=1230#include#include#include#includeusing namespace std ;int prime[ 30 ] ;int num[ 30 ];void Prime(){ memset( num , 0 , sizeof( num ) ); int i原创 2013-06-08 20:10:09 · 839 阅读 · 0 评论 -
hdu2074-叠筐
http://acm.hdu.edu.cn/showproblem.php?pid=2074#include#include#includeusing namespace std;char mapp[ 100 ][ 100 ] ;char a[ 10 ][ 10 ] ;void dfs( int x , int y , int k ){ if( x > y ) retu原创 2013-06-08 22:42:46 · 971 阅读 · 0 评论 -
Bachelor's song
题目不难,但使用string中的find判断是否存在,且返回首字母的位置;由于为字符串,所以只要首字母小于总长度减去查询字符长度即可;#include#include#include#includeusing namespace std;const int maxn = 10005;int main(){ string str; string::size_type posi原创 2013-11-22 20:12:36 · 1047 阅读 · 0 评论