博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
各种非算法模板
阅读量:5816 次
发布时间:2019-06-18

本文共 2089 字,大约阅读时间需要 6 分钟。

无限栈:

-Wl,--stack=998244353

lemon SPJ:

1 #include 
2 3 using namespace std; 4 5 ifstream fin,fout,fstd; 6 ofstream fscore,freport; 7 // 注意定义 8 9 double judge()10 {11 /*12 关于读入与输出:与cin/cout类似13 Eg.14 fin >> x; //从输入文件里读入x15 freport << "too young too simple sometimes naive."; //提示错因16 */17 18 freport << "AC";19 return 1;20 }21 22 int main(int argc, char *argv[])23 {24 fin.open(argv[1]);25 fout.open(argv[2]);26 fstd.open(argv[3]);27 fscore.open(argv[5]);28 freport.open(argv[6]);29 30 int score = atoi(argv[4]);31 fscore << score * judge() << endl;32 33 fin.close();34 fout.close();35 fstd.close();36 fscore.close();37 freport.close();38 return 0;39 }

要么放在data下,要么在lemon的里面加上文件夹前缀,形如 D1T1\spj.exe

linux对拍:后缀是.sh,运行命令是 sh ***.sh

#!/bin/bashwhile true; do    ./make    ./my    ./right    if diff my.out right.out; then        printf "AC "    else         printf "WA\n"        exit 0    fidone

fread:更快的快读(只能读文件)

inline char gc() {
    static char *p1, *p2, s[N];     if(p1 == p2) p2 = (p1 = s) + fread(s, 1, N, stdin);     return (p1 == p2) ? EOF : *p1++; } template
inline void read(T &x) { x = 0; char c = gc(); bool f = 0; while(c < '0' || c > '9') {
if(c == '-') f = 1; c = gc(); } while(c >= '0' && c <= '9') { x = x * 10 + c - 48; c = gc(); } if(f) x = (~x) + 1; return;}

代码标准开头:

/** * There is no end though there is a start in space. ---Infinity. * It has own power, it ruins, and it goes though there is a start also in the star. ---Finite. * Only the person who was wisdom can read the most foolish one from the history. * The fish that lives in the sea doesn't know the world in the land. * It also ruins and goes if they have wisdom. * It is funnier that man exceeds the speed of light than fish start living in the land. * It can be said that this is an final ultimatum from the god to the people who can fight. * * Steins;Gate */

 

转载于:https://www.cnblogs.com/huyufeifei/p/9772635.html

你可能感兴趣的文章
开源 免费 java CMS - FreeCMS1.9 移动APP生成栏目列表数据
查看>>
虚拟机新增加硬盘,不用重启读到新加的硬盘
查看>>
Java IO流详尽解析
查看>>
邮件服务系列之四基于虚拟用户的虚拟域的邮件系统(安装courier-authlib以及部分配置方法)...
查看>>
Linux VSFTP服务器
查看>>
DHCP中继数据包互联网周游记
查看>>
Squid 反向代理服务器配置
查看>>
Java I/O操作
查看>>
Tomcat性能调优
查看>>
项目管理心得
查看>>
Android自学--一篇文章基本掌握所有的常用View组件
查看>>
灰度图像和彩色图像
查看>>
通过vb.net 和NPOI实现对excel的读操作
查看>>
TCP segmentation offload
查看>>
java数据类型
查看>>
数据结构——串的朴素模式和KMP匹配算法
查看>>
FreeMarker-Built-ins for strings
查看>>
验证DataGridView控件的数据输入
查看>>
POJ1033
查看>>
argparse - 命令行选项与参数解析(转)
查看>>