跳到正文

生活·游记

GD CSP-J 2025 迷惑行为打赏 & 我的游记

Manacher约 1 分钟
原文
文章信息与版本

文章信息

发布
2025年11月6日
收录
2026年7月15日
更新
2026年11月15日
篇幅
约 1 分钟
获赞
1

版本

  1. v1当前

统计

freopen

freopen :(不区分大小写) 162897 个
freopen :(区分大小写) 162896 个 无文件的 freopen : 5个

  • GD-J01005 polygon.cpp IN
  • GD-J01005 polygon.cpp OUT
  • GD-J03752 polygon.cpp IN
  • GD-J03871 polygon.cpp IN
  • GD-J03871 polygon.cpp OUT

fropen

只有一位写错

突然发现了一个很新的文件读写方法

C++
void fropen(string name){
	freopen((name+".in").c_str(),"r",stdin);
	freopen((name+".out").c_str(),"w",stdout);
}

考前还是多看看freopen写法吧

C++
    fropen("number.in","r",strin);
    fropen("number.out","w",strout);
    fropen("xor.in","r",strin);
    fropen("xor.out","w",strout);

::::

原文