#include int i,j,m,n,t;long long f[6000][6000];inline int min(int a,int b){ return a<b?a:b;}int main(){// freopen("ticket.in","r",stdin);// freopen("t...
分类:
其他好文 时间:
2014-10-20 16:40:50
阅读次数:
154
1 #if 0 2 1,sscanf():从一个字符串中读进与指定格式相符的数据. 3 2,sscanf与scanf类似,都是用于输入的,只是后者以屏幕(stdin)为输入源,前者以固定字符串为输入源。 4 3,关于正则表达式: 5 (1)%[..],当字符属于方括号里表达式表示的字符集时...
分类:
其他好文 时间:
2014-10-18 12:25:55
阅读次数:
181
文件描述符stdin:标准输入,接收鼠标、键盘或其他输入设备的输入信息,文件描述符是1stduot:输出所有的正常输出结果,文件描述符是2stderr:输出所有错误信息,文件描述符是3重定向符“>":使用方法,“command > file",进程接受标准输入后,该重定向符使得标准输出改变方向,不输...
分类:
系统相关 时间:
2014-10-16 23:17:53
阅读次数:
265
容器操作使用 docker 命令行操作 docker 容器启动容器core@localhost ~ $ docker run
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container
-a, --attach=[] Attach to STDIN, ST...
分类:
其他好文 时间:
2014-10-16 12:55:13
阅读次数:
301
使用的是nios ii 13 版本。直接在nios 软件上运行时程序能够执行,其中已经配置了stdin stderr stdout为jtag_uart。run configure 里面的byte stream device 自动选择jtag_uart。改变程序与stdin stdout stderr...
分类:
其他好文 时间:
2014-10-13 01:05:18
阅读次数:
390
1 #include 2 #include 3 #include 4 using namespace std; 5 6 int main() 7 { 8 freopen("ACM.txt","r",stdin); 9 int t;10 cin>>t;11 wh...
分类:
其他好文 时间:
2014-10-12 00:52:46
阅读次数:
204
象while, until, 和for循环代码块, 甚至if/then测试结构的代码块, 都可以对stdin进行重定向. 即使函数也可以使用这种重定向方式(请参考例子 23-11). 要想做到这些, 都要依靠代码块结尾的 "$Savefile" # 重定向stdin到文件$Filename, # ....
分类:
其他好文 时间:
2014-10-11 16:50:35
阅读次数:
161
生理周期简单模拟对于超出23 * 28 * 33(21252)时进行求余运算即可。#includeint main(){ //freopen("in.txt","r",stdin); int a,b,c,d,s,m=1; while(scanf("%d %d %d %d",&a,&...
分类:
其他好文 时间:
2014-10-10 12:02:54
阅读次数:
254
输入输出流程序 代码(C)本文地址:http://blog.csdn.net/caroline_wendy使用输入输出流,控制文件流。STDIN_FILENO,STDOUT_FILENO代表标准输入和标准输出的文件描述符。执行文件使用"./", 结束文件"Ctrl+D"。代码:/*By C.L.Wang
* Eclipse CDT
* Ubuntu 12.04
* 2014.10.5*/
...
分类:
系统相关 时间:
2014-10-06 11:31:10
阅读次数:
225
本文环境和之前的Hadoop 1.x不同,是在Hadoop 2.x环境下测试。newLISP脚本,在stdin中读取数...
分类:
其他好文 时间:
2014-10-04 22:24:07
阅读次数:
183