1.create a folder: mkdir /sandbox/svn2.create svn repository: svnadmin create /sandbox/svn/project3.edit passwd: [users] Hello=world Happy=day Ni=hao4...
分类:
系统相关 时间:
2015-07-11 16:33:57
阅读次数:
164
大家也许会问:“这几天小编都没出文章,跑哪里happy去啦?是不是偷懒去了?”
小编:“臣妾冤枉啊。”
其实小编这几天都在制作【程序员联盟】的网站。经过设计,找资料,修改,测试,改源代码(PHP),美工,上传文章。终于算是做得基本能见人了。
我们的官网地址就是:
coderunity.com
我们的网站是响应式的(Responsive design),所以在电脑,平板和手机上会自适应,而且呈现的内容优先级不一样。...
分类:
编程语言 时间:
2015-07-10 15:14:06
阅读次数:
166
https://leetcode.com/problems/happy-number/快乐数 1 class Solution { 2 public: 3 bool isHappy(int n) { 4 int res; 5 int temp; 6 ...
分类:
移动开发 时间:
2015-07-08 12:21:17
阅读次数:
176
解决问题的思路:
第一步:从上图中,我们可以发现:在闭区间[1,13]内的所有数经过次数有限的迭代后,它们将会变成1或者4,而1是happy number,4不是happy number。进而可以判断出闭区间[1,13]内的所有数的happy性。第二步:下面我做了一个大胆的假设,所有的正数经过可接受的有限次迭代后都将变成1或者4。由于在数学上给出证明所需的时间远远大于用程序验证,所以暂且不进行...
分类:
移动开发 时间:
2015-07-07 11:11:47
阅读次数:
120
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动开发 时间:
2015-07-05 14:53:40
阅读次数:
127
// 字符串替换空格:请实现一个函数,把字符串中的每个空格替换成“%20”。
// 例如输入“we are happy.”,则输出“we%20are%20happy.”
#include
#include
char* replace(char* p)
{
char* ret = p;
int num = 0;
int oldlen = 0;
int newlen = 0;
...
分类:
编程语言 时间:
2015-07-04 11:16:59
阅读次数:
181
写在前面:小编经历了昨天一晚上加今天一整天的“不吃不喝(夸张点…总之就是把时间全分享给TA了)”终于把程序的问题全部解决了,小编现在的心情十分的开森,开森,开森,Happy,话不多说,直接进入正题:---------------------------------------------------...
分类:
Web程序 时间:
2015-07-03 23:17:15
阅读次数:
168
//1.字符串替换空格:请实现一个函数,把字符串中的每个空格替换成“%20”。
//例如输入“we are happy.”,则输出“we%20are%20happy.”。
#include
#include
#include
using namespace std;char* Grial(char *s)
{
assert(s...
分类:
编程语言 时间:
2015-07-03 17:31:14
阅读次数:
170
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares...
分类:
移动开发 时间:
2015-07-03 09:15:07
阅读次数:
131
Problem Description
Happy New Term!
As having become a junior, xiaoA recognizes that there is not much time for her to AC problems, because there are some other things for her to do, which makes h...
分类:
其他好文 时间:
2015-07-02 15:47:02
阅读次数:
163