- 博客(4)
- 收藏
- 关注
原创 二进制子串问题
描述 Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as a substring of B? For example, the text string B is ‘1001110110’ while
2013-05-16 11:46:11 557
原创 括号配对问题
描述 现在,有一行括号序列,请你检查这行括号是否配对。 输入 第一行输入一个数N(0 输出 每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No 样例输入 3 [(]) (]) ([[]()]) 样例输出 No No Yes 分析: 这是一道比较简单的题目,理清楚几个
2013-05-15 19:10:29 339
原创 修改的屏幕保护-码农的梦
前天收到了一个有意思的代码,据说是小榕写的,于是将之编译成屏保,送给工作在一线的coder. 源代码: #pragma comment(linker,"/subsystem:\"Windows\" /entry:\"mainCRTStartup\"") #include #define ID_TIMER 1 #define STRMAXLEN 25 //一个显示
2013-05-14 21:38:30 557
原创 我也来小恶搞一下极客文化
#include #define b ( #define a void #define c main #define q ) #define e . #define f { #define g } #define h
2013-03-28 22:50:33 468
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人