自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 【Boost.Asio学习笔记】简介+简单例子

一、异步定时器的使用#include #include #include boost::asio::io_service io;boost::asio::deadline_timer t(io, boost::posix_time::seconds(5));boost::asio::deadline_timer t1(io, boost::posix_time::seconds(

2012-07-31 17:37:22 1219

原创 SOJ-3305(斯德哥尔摩数)

【题目描述】求第k个二进制表示1的个数为偶数的数【解题思路】要么是2 * k要么是2 * k + 1

2012-07-23 17:32:12 535

原创 SOJ-3330(bfs)

1 1 1 01 1 0 00 0 0 0求所有0到1的最短距离struct my{ int x, y, z;} wo;int d[1001][1001];int tag[1001][1001];int main(){ int cases, a, b; scanf("%d", &cases); while (cases--) { scanf("%d%

2012-07-10 17:27:24 870

原创 SOJ-3450(一个数的约数有哪些,需要列举)

【解析】分成两段int main(){ int n; while (scanf("%d", &n) == 1) { int i, end = sqrt(n * 1.0) + 1; int ans[10005], index = 0; int flag = -1; for (i = 1; i <= end; ++i) { if (n % i == 0) { p

2012-07-10 17:02:25 624

原创 面试整理

int i = 1;int main(){ int i = i; return 0;}//能通过编译,但i是未定义的值下水道井盖为什么是圆的展示一段自己觉得写过的最好的程序数组在哪里分配空间(堆or栈)

2012-07-09 11:22:34 1538

原创 Xmart Imaging【笔试】

1. 求sizeof#include #include union my{ int x; int y[5]; char z;};struct you{ int a; union my b; double c;};int main(){ printf("%d %d

2012-07-05 13:21:45 777

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除