桑海

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月13日

摘要: //---------------MY CODE-------------------------#include<iostream>#include<vector>#include<string>using namespace std;string get(string word){ for(int i = 1; i != word.size(); ++i) { ch... 阅读全文
posted @ 2012-11-13 22:55 桑海 阅读(270) 评论(1) 推荐(0) 编辑

摘要: 1 //--------------------C_Style---------------------- 2 3 #include<stdio.h> 4 #include<string.h> 5 const int maxn = 3000; 6 7 int get_next(int n) 8 { 9 char str[10];10 sprintf(str, "%d", n); //将%d的n转换成字符串存入到str中11 int size = strlen(str);12 for(int ix = 1; ix != size; ++ix) ... 阅读全文
posted @ 2012-11-13 17:00 桑海 阅读(937) 评论(0) 推荐(0) 编辑