水A - Pasha and Stick#include using namespace std;typedef long long ll;const int N = 1e5 + 5;const int INF = 0x3f3f3f3f;int main(void) { int n; scanf ....
分类:
其他好文 时间:
2016-01-18 22:32:53
阅读次数:
317
题目描述:请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。Solution:#include using namespace std;void replaceBlank(char str[],i...
分类:
其他好文 时间:
2016-01-18 22:32:05
阅读次数:
172
题目:给你一个矩阵和某些点,找到给的点所处连续的W区域的面积(八个方向)。分析:搜索。floodfill算法,利用搜索直接求解就可以了。说明:注意读入数据的格式。 1 #include 2 #include 3 using namespace std; 4 5 char map[105][10...
分类:
其他好文 时间:
2016-01-18 20:40:46
阅读次数:
343
题目在这里:http://acm.hdu.edu.cn/showproblem.php?pid=1520题解,这是我的备忘录,没有任何注释。 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 8 /* 9 dp[i...
分类:
其他好文 时间:
2016-01-18 20:31:54
阅读次数:
191
这里贴出关键部分,如果你需要看英文原版请点击下面的连接。下面中文部分是我的简单翻译。I decompiled an apk file using dex2jar and opened the resulting jar file in jd-gui. I can view almost all of...
分类:
其他好文 时间:
2016-01-18 20:31:22
阅读次数:
9534
1 #include 2 #include 3 4 using namespace std; 5 6 #define ARRAY_SIZE 10 7 8 int g_bubble_sort[ARRAY_SIZE] = {3, 1, 5, 9, 12, 7, 8, 13, ...
分类:
编程语言 时间:
2016-01-18 17:34:24
阅读次数:
201
接下来完成用户、角色的增删查改,以及用户角色、权限的设置对用户表、角色表做了一些扩展如下【可以更加自己需要增减字段】相应的M_UserProfile.cs、M_Roles.cs进行扩展using System;using System.Collections.Generic;using System...
分类:
Web程序 时间:
2016-01-18 11:52:18
阅读次数:
1651
??// overloading class constructors#include using namespace std;class Rectangle { int width, height; public: Rectangle (); Rectangle (int,in...
分类:
编程语言 时间:
2016-01-18 11:45:27
阅读次数:
137
Given an integer, write a function to determine if it is a power of three.Follow up:Could you do it without using any loop / recursion?Credits:Special...
分类:
其他好文 时间:
2016-01-18 06:56:31
阅读次数:
131
1.判断一个数是否为素数的普通方法复杂度 O(√n) 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 bool prime(int x); 8 9 int main(){10 //freopen("E:\...
分类:
其他好文 时间:
2016-01-18 00:30:50
阅读次数:
218