题目描述Dominos are lots of fun. Children like to stand
the tiles on their side in long lines. When one domino falls, it knocks down the
next one, which k...
分类:
其他好文 时间:
2014-06-13 08:09:51
阅读次数:
318
感谢微信平台----一天一道算法题----每天多一点进步大数的概念 感觉是我接触acm 1 2
个月之后才有的....64位的Long long 和 __int64 也大概都是那时候才有的..大数 相加 相乘 相除 求余 相减不知道
有没有。。。都是应该要掌握的..可能 我也会陆续把上面的全慢慢贴上...
分类:
其他好文 时间:
2014-06-12 20:07:33
阅读次数:
282
string类型转换int类型本文地址: http://blog.csdn.net/caroline_wendyC语言转换形式:...
std::string str;
int i = atoi(str.c_str());
...C++转换形式(C++11):...
std::string str;
int i = std::stoi(str);
...同样, 可以使用 stol(long), s...
分类:
编程语言 时间:
2014-06-11 00:27:22
阅读次数:
294
水题,注意数据范围#include using namespace std;int main(){
long long n,a; cin >> n; long long sum =(n*(n+1))>>1; for(int i = 0
; i >a; sum ...
分类:
其他好文 时间:
2014-06-10 12:47:58
阅读次数:
233
题目描述Dominos are lots of fun. Children like to stand
the tiles on their side in long lines. When one domino falls, it knocks down the
next one, which k...
分类:
其他好文 时间:
2014-06-10 12:08:55
阅读次数:
232
LINUX 如下:
1)导出数据
[root@www.cnscn.org ~]$ mysqldump -u root -p dbname --default-character-set=gbk > base_user.sql;
2)查看导出的sql文件的编码
[root@www.cnscn.org ~]$ file base_user.sql
base_user.sql: UTF-8 Unicode text, with very long lines
3)转成要用的编码
[root@www.cn...
分类:
数据库 时间:
2014-06-10 11:14:39
阅读次数:
394
【题解】:【代码】: 1 #include 2 #include 3 #include 4
#define LL long long 5 using namespace std; 6 7 bool
dp[505][505];//已经用了i个人,已分配出j个任务 8 LL S[505]; 9 ...
分类:
其他好文 时间:
2014-06-10 10:39:06
阅读次数:
159
注意数据范围即可#include #include #include using namespace
std;int main(){ long long n,x; cin >> n >> x; vector c(n); for(int i
= 0 ; i > c[i]; ...
分类:
其他好文 时间:
2014-06-09 21:17:11
阅读次数:
269
注意p的边界情况,p为0,或者 p为k奇数+偶数 = 奇数奇数+奇数 = 偶数#include
#include #include #include #include using namespace std;int main(){ int n,k,p;
long a; cin >>...
分类:
其他好文 时间:
2014-06-09 20:20:23
阅读次数:
243
http://poj.org/problem?id=1095先求出n个节点数的二叉树的形态有多少种。卡特兰数f[n]=f[n-1]*(4*n-2)/(n+1);再递归求。
1 #include 2 #include 3 #include 4 #define ll long long 5 #de...
分类:
其他好文 时间:
2014-06-09 15:14:11
阅读次数:
167