题目描述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
很多时候需要将c,c++形式的struct转换为 NSData来处理。但是怎么转换呢?
假设有这么一个结构体: struct MYINFO { int a; long b; char c; }; struct MYINFO infoStruct;
infoSt...
分类:
其他好文 时间:
2014-06-12 08:48:35
阅读次数:
191
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