#include <stdio.h> #define State '\n' void main() { int Juge=;/*only one space*/ int c=; while((c=getchar())!=EOF) { if(c==' '||c=='\t'||c=='\b') { if(Juge==) { putchar(State); Juge=; } } else { putchar(c); Juge=; } } } I Love U I Love U…
#include <stdio.h> #define DBS '\\' void main() { int c; while((c=getchar())!=EOF) { if(c=='\t') { putchar(DBS); putchar('t'); } else if(c==' ') { putchar(DBS); putchar('b'); } else if(c=='\\') { putchar(DBS); putchar(DBS); } else putchar(c); } prin…
#include <stdio.h> void main() { int c,c_BCN; while((c=getchar())!=EOF) { if(c!=' ') c_BCN=; if(c==' ') ++c_BCN; if(c_BCN<=) putchar(c); } printf("\n%d\n",c); } df ff f f fff d fg fgg df ff f f fff d fg fgg…
控件组合的水平布局 select + input 在同一行 注意jquery mobile 的js 和css 的版本, 一些低版本 估计不支持 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css" /> <script t…
第一章虽然感觉不像是个习题.但是我还是认真去做,去想,仅此而已! 练习 1-1 Run the "hello, world" program on your system. Experiment with leaving out parts of the program, to see what error messages you get.  #include <stdio.h> int main(int argc, char const *argv[]) { print…
/* Write a program that prints its input one word per line. */ #include <stdio.h> #define IN 1 /* inside a word */ #define OUT 0 /* outside a word */ /* print input one word per line */ main() { int c, state = OUT; while((c = getchar()) != EOF) { if…
Xx_Introduction Character input and output is by more line character conpose of the text flow  Define name common use capital  letter,easy read. The Standard C Library ----->provide I/O model ------>use character flow way. Ax_Application file copy,c…
Optiver sponsored problem. After years of hard work Optiver has developed a mathematical model that allows them to predict wether or not a company will be succesful. This obviously gives them a great advantage on the stock market. In the past, Optive…
A I Count Two Three I will show you the most popular board game in the Shanghai Ingress Resistance Team. It all started several months ago. We found out the home address of the enlightened agent Icount2three and decided to draw him out. Millions of m…
熟能生巧,多撸代码多读书 https://github.com/zhiwehu/Python-programming-exercises/blob/master/100+%20Python%20challenging%20programming%20exercises.txt 21.机器人从原点(0,0)开始在平面内移动.机器人可以按照给定的步骤向上.向下.向左和向右移动.机器人运动轨迹如右所示: 上 5  下 3  左 3  右2  i:方向后面的数字是步骤.请写一个程序来计算从当前位置经过一…