码迷,mamicode.com
首页 >  
搜索关键字:freopen    ( 1399个结果
不陌生的素数
1.判断一个数是否为素数的普通方法复杂度 O(√n) 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 bool prime(int x); 8 9 int main(){10 //freopen("E:\...
分类:其他好文   时间:2016-01-18 00:30:50    阅读次数:218
bzoj1046: [HAOI2007]上升序列
真尼玛神坑m还可以等于0mgj 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 void setIO(const string& s) {10 freopen((s +...
分类:其他好文   时间:2016-01-13 23:15:33    阅读次数:228
UVa12063 Zeros and Ones
神坑 1竟然还要取模在后面填数多好的 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 void setIO(const string& s) {10 freopen((...
分类:其他好文   时间:2016-01-08 09:18:25    阅读次数:172
bzoj1040: [ZJOI2008]骑士
破环qwq 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 void setIO(const string& s) { 10 freopen((s +...
分类:其他好文   时间:2016-01-06 12:04:15    阅读次数:168
在Windows程序中启用console输出-2016.01.04
在某些时候,我们可能需要在Win32窗口应用程序中打开控制台窗口,打印一些消息,或者作为当前程序的另外一个人机交互界面,或者为了帮助调试程序。为了达到这种效果,需要了解函数AllocConsole和C-Runtime的freopen函数。AllocConsole函数会为当前的窗口程序申请一个Cons...
分类:Windows程序   时间:2016-01-04 10:05:04    阅读次数:230
UVa11925 Generating Premutations
留坑(p.254) 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 void setIO(const string& s) {10 freopen((s + ".in"...
分类:其他好文   时间:2016-01-03 22:17:55    阅读次数:212
BestCoder Round #69 (div.2)
A.geometry#include#include#include#include#includeusing namespace std;int main(){ //freopen("in.txt","r",stdin); int T;scanf("%d",&T); while(...
分类:其他好文   时间:2016-01-03 00:39:15    阅读次数:278
HDU 2083 简易版之最短距离 --- 水题
HDU 2083 简易版之最短距离/* HDU 2083 简易版之最短距离 */#include #include using namespace std;const int maxn = 505;int a[maxn];int main(){#ifdef _LOCAL freopen("D:...
分类:其他好文   时间:2015-12-28 06:17:25    阅读次数:200
bzoj1009: [HNOI2008]GT考试
马题解传送门http://www.cnblogs.com/Tunix/p/4412201.html#include#include#include#include#includeusing namespace std;void setIO(const string& s) { freopen(...
分类:其他好文   时间:2015-12-21 21:55:35    阅读次数:221
UVA 11491 Erasing and Winning
#include#define REP(i,a,b) for(int i=a;i q;int main(){ freopen("in.txt","r",stdin); while(cin>>n>>d,n||d){ REP(i,1,n) scanf("%1d",&a[i]);...
分类:Windows程序   时间:2015-12-17 22:22:18    阅读次数:299
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!