码迷,mamicode.com
首页 >  
搜索关键字:puts    ( 2099个结果
LRTHW笔记二
简体中文(学习阅读来源):http://blog.itpub.net/11379785/viewspace-1199963/英文版:http://ruby.learncodethehardway.org/book/繁体版:http://lrthw.github.io/代码:1 puts "Hello...
分类:其他好文   时间:2014-08-25 22:36:24    阅读次数:219
使用 alias 为方法添加新功能
def hello # A nice simple method puts "Hello World" # Suppose we want to augment it...end alias original_hello hello # Give the method a backup named....
分类:其他好文   时间:2014-08-24 10:17:32    阅读次数:167
POJ 2398 计算几何+二分+排序
Toy Storage Time Limit: 1000MS  Memory Limit: 65536K Total Submissions: 3953  Accepted: 2334 Description Mom and dad have a problem: their child, Reza, never puts his toys away when he is fi...
分类:其他好文   时间:2014-08-19 09:26:53    阅读次数:245
UVA - 10561 Treblecross (SG定理)
Treblecross is a two player gamewhere the goal is to get three X in a row on a one-dimensional board. At the startof the game all cells in the board is empty. In each turn a player puts a X in an empt...
分类:其他好文   时间:2014-08-17 17:03:33    阅读次数:358
poj水题-3062 超级水题的深层理解——代码简化
题目很简单,要求输入什么样输出什么样。以回车结束这就是我用的C代码#include int main (){char p;for(;gets(&p);)puts(&p);return 0;}使用了代码简化方案,我简化到了75B。有大神简化到31B,真想看看他们的源代码。我估计他们比我个能够了解语言规...
分类:其他好文   时间:2014-08-16 18:29:50    阅读次数:207
FATFS 初学之 f_gets/ f_putc/ f_puts/ f_printf
f_gets: 1 /*-----------------------------------------------------------------------*/ 2 /* Get a string from the file ...
分类:其他好文   时间:2014-08-14 14:02:38    阅读次数:2074
HDU 4940 Destroy Transportation system 规律题
答案只有2种情况,所以ans = rand()%2;  if(ans)puts("happy") else puts("unhappy"); == 想过无源汇的网络流,还是比较麻烦的,然后没往下想。。。 设s点集有一些点, 多加一个点一定是y增加比较快_(:зゝ∠)_ 然后设s点集只有一个点 #include #include #include #include us...
分类:其他好文   时间:2014-08-12 19:08:54    阅读次数:204
HDU 4931 Happy Three Friends
#include #include using namespace std;int p1,p2,a[6],T;int main(){ scanf("%d",&T); while(T--){ for(int i=0;ip2)puts("Grandpa Shawn is the...
分类:移动开发   时间:2014-08-11 11:45:12    阅读次数:203
rails路由
web敏捷开发 p317depot > ruby script/console>>rs = ActionController::Routing::routes可以简单测试比如>>puts rs.routes>>rs.recognize_path "/store">>rs.generate :cont...
分类:其他好文   时间:2014-08-05 00:31:58    阅读次数:252
C++ 中Hello World的一种写法
/*C++HelloWorld**/#include#includeintmain(){printf("HelloWorld");//2000年我上大学的课本写法puts("Hi");//只用来输出字符串,没有格式控制puts("hi""greatverve""ok");//直接连接字符串std::...
分类:编程语言   时间:2014-07-29 11:30:36    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!