E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
freopen
2019年北京青少年信息学科普日活动朝阳区选拔赛小学组参考答案
1求长方形的周长和面积#include#includeusingnamespacestd;intmain(){
freopen
("rectangle.in","r",stdin);
freopen
("rectangle.out
海天一树X
·
2019-05-26 19:50
2019年北京青少年信息学科普日活动朝阳区选拔赛小学组参考答案
1求长方形的周长和面积#include #include usingnamespacestd; intmain() {
freopen
("rectangle.in","r",stdin);
freopen
海天一树
·
2019-05-26 00:00
2018年南海区小学生程序设计竞赛详细答案
1魔术卡片AC代码#include#includeusingnamespacestd;intmain(){
freopen
("hide.in","r",stdin);
freopen
("hide.out",
海天一树X
·
2019-05-23 15:51
2018年南海区小学生程序设计竞赛详细答案
1魔术卡片AC代码#include #include usingnamespacestd; intmain() {
freopen
("hide.in","r",stdin);
freopen
("hide.out
海天一树
·
2019-05-23 00:00
佛山程序设计竞赛
NOIP 2018普及组复赛C/C++参考答案
第1题标题统计#include #include usingnamespacestd; intmain() {
freopen
("title.in","r",stdin);
freopen
("title.out
海天一树
·
2019-05-19 00:00
NOIP
bzoj 1189: [HNOI2007]紧急疏散evacuate 分层图最大流_拆点_二分
bzoj1189:[HNOI2007]紧急疏散evacuate分层图最大流_拆点_二分Code:#include#definesetIO(s)
freopen
(s".in","r",stdin)#definemaxn100000
EM-LGH
·
2019-05-18 21:00
C++
freopen
从文件自动读入数据
使用
freopen
可以从文件中直接读入数据,避免每次调试都重复的输入数据术语:
freopen
重定向输入#includeusingnamespacestd;intmain(){
freopen
("C:\\Users
TFprime
·
2019-05-01 01:13
竞赛中打表操作
#include#includeintmain(){inti;
freopen
("1.txt","w",stdout);printf("a[]={");for(i=0;i<100;i++)if(i%10=
贺志营
·
2019-04-25 15:34
数据结构
Codeforces Round #552 (Div. 3) 题解
definesedsecondusingnamespacestd;typedeflonglongll;constintINF=0x3f3f3f3f;constllLINF=0x3f3f3f3f3f3f3f3f;intmain(){#ifdefLOCAL//
freopen
CaprYang
·
2019-04-20 22:58
_动态规划_
_数据结构_
Codeforces
贪心
暴力枚举
模拟
洛谷-训练场-新手村-简单字符串-P1308 统计单词数
#include#includeintmain(){//
freopen
("testdata.in","r",stdin);intans=0,sta=-1,xlen,ylen,i,k;charx[25],
橘猫道长
·
2019-04-09 02:01
洛谷
C++换行与读入
#include#includeusingnamespacestd;intmain(){charc;
freopen
("1.txt","r",stdin);while((c=getchar())!
_Jim_
·
2019-04-01 18:46
C++笔记
2019年第十届蓝桥杯C/C++B组省赛总结
前言一年一度的蓝桥杯,这是我第二次参加蓝桥杯,第一次水了一个省三,这次本来是奔着省一去的,结果不知道怎么翻车了,可能是没写return0,也可能是
freopen
没注释,也有可能是自己没写对,反正就是自己太菜了
CPUTern
·
2019-03-31 21:37
【hdoj1021】类斐波那契数列的循环节(f[i]能否mod3?找规律)
definemaxn1005typedeflonglongll;constllinf=1e+18;usingnamespacestd;intmain(){intf[10],i;f[0]=7;f[1]=11;//
freopen
_奶酪
·
2019-03-28 16:00
算法入门题目
水题
中国石油大学天梯赛真题模拟第五场
#include"bits/stdc++.h"usingnamespacestd;constintmaxn=1100;vectorq[maxn];vectorans[maxn];intmain(){
freopen
Albert_6565
·
2019-03-28 14:00
使用C++ map 或者 sort 把几个正整数组合成最小整数或最大整数
321,32,字典排序默认长的在后面,正确情况应该是组合成32132.我们可以考虑在读入的时候加入一个字母即可,输出记得去掉字母#includeusingnamespacestd;intmain(){//
freopen
mooe1011
·
2019-03-27 09:43
C++
旋转卡壳 POJ - 2187 gym101635K
POJ-2187(求凸包直径)#include#include#include#include#include#include#include#include#include#defineFRER()
freopen
明日可7
·
2019-03-26 19:43
几何
【总结】动态规划 or 组合数学解决棋盘(迷宫)路径问题(持续更新中)
/方法1:O(n^2)intans[maxn][maxn];intn=5,m=3;for(inti=1;i#definemaxn100005usingnamespacestd;intmain(){//
freopen
_奶酪
·
2019-03-22 13:01
动态规划dp
组合数学
第二章 循环结构程序设计
方法:文件输入输出重定向
freopen
("input.txt","r",stdin);freop
软院雷小军
·
2019-03-20 08:46
luoguP1390 公约数的和 数学推导_双倍经验
luoguP1390公约数的和数学推导_双倍经验Code:#include#include#definesetIO(s)
freopen
(s".in","r",stdin)#definelllonglong
EM-LGH
·
2019-03-16 14:00
unix io
全缓冲,行缓冲,不带缓冲fopen,
freopen
,fdopen打开流getc,fgetc,g
小小爱笑
·
2019-03-11 17:39
Visual Studio 2017 创建项目模板(for ACM/OI 自定义)
在竞赛中,我们习惯使用
freopen
来读写文件,msvc认为这是不安全的,于是需要设置去除警告:另外,空项目的console会一闪而过,需要如下设置:至此,已经可以生成模板辣模板生成选择一些配置,比
Feynman1999
·
2019-03-10 22:08
Xiang
Talk
【FJWC】day4简要题解
#includeusingnamespacestd;inttk,n,a,b;intmain(){//
freopen
("flow.in","r
ccosi
·
2019-03-06 19:24
妙
test
LCT
找规律
2019-03-02 斐波那契数列最大值
image.png#include#include#includeusingnamespacestd;intmain(void){
freopen
("D:\\1.txt","r",stdin);inta[
桐桑入梦
·
2019-03-02 16:00
UVALive 4589 Asteroids (三维凸包&&重心)
#include#include#include#include#include#include#include#include#include#defineFRER()
freopen
("/Users/
明日可7
·
2019-02-26 21:02
几何
UVALive 3890 Most Distant Point from the Sea (半平面交)
#include#include#include#include#include#include#include#include#include#defineFRER()
freopen
("in.txt"
明日可7
·
2019-02-26 14:05
几何
求LCA的三种方法
TarjanO(n+q)HDU-2586#include#include#include#include#include#include#include#include#include#defineFRER()
freopen
明日可7
·
2019-02-20 21:28
LCA
OSError: [WinError 6] 句柄无效
Exceptionignoredin:'mode='w'encoding='utf-8'>voidOpenConsole(){//createaconsoleAllocConsole();FILE*stream;
freopen
_s
ShellCollector
·
2019-02-16 11:55
c++
UVA 1658 Admiral (费用流+拆点)
#include#include#include#include#include#include#include#include#include#defineFRER()
freopen
("in.txt"
明日可7
·
2019-02-10 13:29
网络流
最大连续子序列和
N2,...,NK},其任意连续子序列可表示为{Ni,Ni+1,...,Nj},其中1#includeusingnamespacestd;inta[10010];intmain(){intn,i;//
freopen
weixin_30832983
·
2019-01-26 20:00
测试
数据结构与算法
算法提高 和最大子序列
其中1intmain(){//
freopen
("input/sum
IoT_fast
·
2019-01-23 09:30
蓝桥杯
comet OJ 热身赛 H. checkin
代码#include#includeusingnamespacestd;typedeflonglongll;constintINF=0x3f3f3f3f;intmain(){#ifdefLOCAL//
freopen
CaprYang
·
2019-01-19 15:28
2019
CCPC-Wannafly
Winter
Camp
comet OJ 热身赛 C. eustia 贪心
includeusingnamespacestd;typedeflonglongll;constintINF=0x3f3f3f3f;constintMAXN=1e6+10;inta[MAXN];intmain(){#ifdefLOCAL//
freopen
CaprYang
·
2019-01-19 15:49
贪心
2019
CCPC-Wannafly
Winter
Camp
Educational Codeforces Round 58 (Rated for Div. 2) A. Minimum Integer
代码#include#includeusingnamespacestd;typedeflonglongll;constintINF=0x3f3f3f3f;intmain(){#ifdefLOCAL//
freopen
CaprYang
·
2019-01-13 14:11
Codeforces
freopen
()重定向的打开和关闭
freopen
函数功能使用不同的文件或模式重新打开流,即重定向。实现重定向,把预定义的标准流文件定向到由path指定的文件中。
dianshu1593
·
2018-12-23 00:00
c/c++
操作系统
文本处理简记
includeusingnamespacestd;//实验三模板templateout_tconvert(constin_t&val){stringstreamstream;stream>res;returnres;}intmain(){
freopen
专属晴天娃娃
·
2018-12-09 20:26
C++语法
【CYH-02】NOIp考砸后虐题赛:成绩:题解
代码:两个数组:#includeusingnamespacestd;inta[10000005],c[10000005];intmain(){//
freopen
("T1_6.in","r",stdin)
ShineEternal
·
2018-12-09 15:58
Linux的读写流原理
1.打开流#includeFILE*fopen(constchar*path,constchar*mode);FILE*fdopen(intfd,constchar*mode);FILE*
freopen
善见致知
·
2018-12-03 10:56
Linux学习
Linux的读写流原理
1.打开流#includeFILE*fopen(constchar*path,constchar*mode);FILE*fdopen(intfd,constchar*mode);FILE*
freopen
善见致知
·
2018-12-03 10:56
Linux学习
龙虎斗
信息学奥林匹克竞赛——复赛试题答案——龙虎斗题目描述参考答案题目描述参考答案直接枚举#includeconstintN=1e5+5;intn,m,p1;longlongc[N],s1,s2;intmain(){
freopen
baimuqiao
·
2018-11-26 09:55
NOIP
NOIP2018(普及组)复赛
T1很快就敲出来了,样例也过了,赶快打开
freopen
()和fclose(),保存完事。最后,很多人用gets全部CE,我用cin免于一死。T
2017gdgzoi999
·
2018-11-18 13:46
杂文
[UNIX环境高级编程] 标准I/O库
freopen
函数清除一个流的定向,fwide函数可用于设置流的定向。#include//Apositiveretur
ANvDbgCapital
·
2018-11-15 16:01
UNIX环境高级编程读书笔记
MFC程序中,想要打开控制台窗口教你一招
我的初始化函数是BOOLCMy133Dlg::OnInitDialog();2)在初始化函数返回值之前,添加以下两行代码: AllocConsole();//为当前的窗口程序申请一个Console窗口
freopen
chenchen0520
·
2018-11-15 00:00
yll学姐的运动世界校园
cid=1001&pid=6#include#include#include//包含了所有C++头文件的头文件usingnamespacestd;intmain(){//
freopen
("in.txt"
The stroke
·
2018-11-11 20:56
代码
『NOIP普及组训练题2题解』
输入格式一个整数,表示Nusingnamespacestd;intn,ans=0,t[10080][18]={};intmain(){
freopen
("allot.in","r",stdin);
Parsnip_
·
2018-11-02 18:34
c重定向函数
函数名:
freopen
函数,以指定模式重新指定到另一个文件。模式用于指定新文件的访问方式。
KetchupZ
·
2018-10-24 20:15
专项之C/C++
c重定向函数
函数名:
freopen
函数,以指定模式重新指定到另一个文件。模式用于指定新文件的访问方式。
KetchupZ
·
2018-10-24 20:15
专项之C/C++
最少拦截系统 HDU - 1257 贪心
题解题写的比较早用的贪心没用dp每次找到能接受当前导弹的最低高度的设备如果没有则增加一个设备AC代码#include#include#defineMAXN100000intmain(){//
freopen
CaprYang
·
2018-10-14 22:37
贪心
低级错误集合
文件错误1.文件名打错2018.10.11T1:
freopen
("forging","r",stdin);
freopen
("forging","w",stdout);看着好像没什么不对??
ccosi
·
2018-10-11 13:41
test
P1865 A % B Problem
#includeusingnamespacestd;constintMAXN=1000002;intjudge[MAXN]={};intsum[MAXN]={};intmain(){
freopen
("in.txt
是三水不是泗水
·
2018-10-07 20:47
C++/PAT/洛谷OJ
PAT乙级1003: 我要通过
本题的要点是找规律,找到aPcAc(其中abc可以是空字符串或者只包含A的字符串,并且a的个数*b的个数=c的个数)题解:#include#includeusingnamespacestd;intmain(){//
freopen
Coding_Liu
·
2018-10-07 20:03
PAT
上一页
15
16
17
18
19
20
21
22
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他