(进入考场后您将获得一个崭新的 \(Dev-cpp\),没有中文没有编译选项没有缺省源;我还将获得一个崭新的脑子,没有心态没有智商没有调试能力……)

中文

\[Step1
\]

\[Step2
\]

\[Step3
\]

编译选项

虽然考试现在兹磁 \(c++14\) 了,但 \(Dev\) 只有 \(c++11\) QwQ。

缺省源

本作者不认为你能在考前写完这样的缺省源:

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define lll __int128
#define pb emplace_back
#define pob pop_back
#define mem(x,y) memset(x,y,sizeof(x))
#define Debug cerr<<"Passed line #"<<__LINE__<<" in function ["<<__FUNCTION__<<"].\n"
#define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define For(i,j,k) for(register int i=j;i<=k;i++)
#define Rof(i,j,k) for(register int i=j;i>=k;i--)
#define ckmx(a,b) if(a<b){a=b;}
#define ckmn(a,b) if(a>b){a=b;}
#define linf 0x3f3f3f3f3f3f3f3f
#define inf 0x3f3f3f3f
//#define endl '\n'
//switches
#define Freopen 0
#define Random 0
#define FastIO 0
#define Mod 0
#define Pair 0
#if Freopen
#define Fin(s) freopen(s,"r",stdin)
#define Fout(s) freopen(s,"w",stdout)
#define File(s) Fin(s".in");Fout(s".out")
#endif
#if Random
#define uid(i,j,k) uniform_int_distribution<ll> i(j,k)
#define Rand(s) s(rand_num)
unsigned seed=chrono::system_clock::now().time_since_epoch().count();//the value is the number of seconds from 1970/1/1 8:00 to the present multiplied by 1e9
mt19937 rand_num(seed);//large random number
#endif
#if FastIO
#define gc getchar
#define pc putchar
template<typename T> void read(T &x){
x=0;char c=gc();bool f=0;
while(!isdigit(c)){if(c=='-')f=1;c=gc();}
while(isdigit(c)){x=(x<<3)+(x<<1)+c-48;c=gc();}
if(f)x=-x;
}
template<typename T,typename... Args> void read(T &first,Args& ... args){
read(first);read(args...);
}
template<typename T> void write(T x){
if(x<0){pc('-');x=-x;}
if(x>9)write(x/10);
pc(x%10+'0');
}
template<typename T,typename... Args> void write(T first,Args ... args){
write(first);pc(' ');write(args...);
}
void pt(string x){
for(char i:x) pc(i);
}
#endif
#if Mod
const ll mod=1000000007;//do not exceed int_max
inline ll pw(ll x,ll y){
ll r=1;
while(y){
if(y&1) r=r*x%mod;
x=x*x%mod;
y>>=1;
}
return r;
}
#define madd(a,b) {a=((a+b)%mod+mod)%mod;}
#define mmul(a,b) {a=(a*b%mod+mod)%mod;}
#define inv(a) pw(a,mod-2)
#endif
#if Pair
#define fir first
#define sec second
#define mkp make_pair
#define pii pair<int,int>
#define pil pair<int,long long>
#define pli pair<long long,int>
#define pll pair<long long,long long>
template<class T1,class T2>
inline const pair<T1,T2> operator+(const pair<T1,T2> &x,const pair<T1,T2> &y){
pair<T1,T2> z;
z.first=x.first+y.first;
z.second=x.second+y.second;
return z;
}
template<class T1,class T2>
inline const pair<T1,T2> operator-(const pair<T1,T2> &x,const pair<T1,T2> &y){
pair<T1,T2> z;
z.first=x.first-y.first;
z.second=x.second-y.second;
return z;
}
#endif
/*--------------------------very unglamorous header file dividing line--------------------------*/ signed main(){ return 0;
}

所以缺省源写成这样差不多了:

#include<bits/stdc++.h>
#define ll long long
using namespace std; signed main(){ return 0;
}

心态

1. 记住一句话:全场我最强(自我安慰)。

2. 题目不会别紧张(Ta 难我难大家难,Ta 易我易拼仔细)。

3. 不要小瞧暴力分。

4. 题意不清别瞎猜(盲猜即错),读清题意再做题(磨刀不误砍柴工)。

5. 注意细节:变量类型,初始化,数组大小等( BMH 校训:把细小的事情做到极致就是成功)。

6. 留一点时间检查文件,别在最后孤注一掷。

智商

别慌即可。

冷静即可。

跳出格局即可。

不要怀疑你的智商。

调试能力

这里不建议使用 \(Dev\) 自带的 \(Debug\)(所以调成 \(Release\) 就行),建议手动输出调试。

实用的代码:

#define Debug cerr<<"Passed line #"<<__LINE__<<" in function ["<<__FUNCTION__<<"].\n"

实战:

编译选项

可以防一些特低级错误。

祝大家 \(\Large{RP++}\)

NOIP&CSP 考前 Dev-cpp 的选项问题和考试心态的更多相关文章

  1. NOIP/CSP-S 考前注意事项

    NOIP/CSP-S 考前注意事项 实际操作与代码注意事项 基本内容 可以使用 #include <bits/stdc++.h>!!!从来都是可以的!!!不需要背诵一大串头文件,更不要从本 ...

  2. Dev Cpp 输出中文字符问题

    最近 c++ 上机作业,vc++6.0 挂了没法用,只好用 Dev Cpp 先顶替一下,然而在遇到输出中文字符的时候出现了乱码的情况,但这种情况又非常诡异.于是简单了解了一下写成此博客. [写在前面] ...

  3. CSP考前复习

    前言 因为loceaner太菜了,他什么东西都不会 所以他打算学一个东西就记录一下 不过因为他很菜,所以他不会写原理-- 而且,他希望在2019CSP之前不会断更 就酱紫,就是写给他自己的--因为他太 ...

  4. 对于C++窗口编译一闪而过的解决方法 (DEV CPP下)

    对于C++窗口编译一闪而过的解决方法 首先来看一个简单的程序(编译环境为 DEV C++.):  #include <iostream>  int main()  {      std:: ...

  5. NOIP 2018 考前须知

    Day0Day0Day0来水一发 Created with Raphaël 2.2.0开始考试浏览题面(3遍),注意数据范围初步判定难度,先易后难15分钟左右想正解实在想吃不出写暴力,NOIP部分分很 ...

  6. CSP考前总结

    10.2 考试: 1.数位DP 或者找规律 2.SB题,扫一遍找最大最小即可 3.莫比乌斯反演 出题人相出个数论和数据结构的综合题,但是找不到NOIP级别的,没办法只能忍痛割爱出个莫比乌斯,话说回来, ...

  7. 清北 Noip 2016 考前刷题冲刺济南班

    2016 10 29 周六 第一天 %%%,%ZHX大神 上午,60分, 下午,爆零orz 2016 10 30 周天 第二天 炒鸡倒霉的一天 %%%,%ZHX大神 据大神第一天的题最简单. 上午,和 ...

  8. c++ 软件下载 Dev cpp下载

    下载地址: 链接: https://pan.baidu.com/s/1hsiWQPY 密码: bdpn

  9. csp考前

    T1不会太麻烦,不行心里多说几遍"沙比提,沙比提".就做出来了. 后天就要出发了,可是我感觉不到长进---- 可能又学一年是个不明智的想法,退役预定.

随机推荐

  1. 第一章 Net 5.0 快速开发框架 YC.Boilerplate--框架介绍

    YC.Boilerplate 框架介绍 YC.Boilerplate 是一套快速开发框架,采用当下流行的前后端分离开发模式,前端 采用VUE.后端采用Net 5.0:框架实现了 多租户.动态webAp ...

  2. 详细解读go语言中的map

    Map map底层是由哈希表实现的 Go使用链地址法来解决键冲突. map本质上是一个指针,指向hmap 这里的buckets就是桶,bmap 每一个bucket最多可以放8个键值对,但是为了让内存排 ...

  3. jdbc操作mysql(一)

    java.sql包 在使用jdbc之前,我们先看看有关操作jdbc会用到的几个类和接口,通过查看官方文档可知 DriverManager:用于管理一组JDBC驱动程序的基本服务,即管理数据库中的所有驱 ...

  4. 解决 conda tensorflow failed to create cublas handle: CUBLAS_STATUS_NOT_INITIALIZED

    参考解决方案1:https://stackoverflow.com/questions/38303974/tensorflow-running-error-with-cublas 参考解决方案2:ht ...

  5. 01_Keil与Proteus联合仿真的注意事项

    01. 关于keil5和Proteus8的联合仿真的操作步骤,这里就不细说,给个链接,步骤差不多是最齐全的 CSDN博客链接:https://blog.csdn.net/wzk456/article/ ...

  6. DNS重新绑定攻击

    来自微信外挂的安全风险 DNS重新绑定攻击 DDNS 动态域名设置

  7. [源码解析] 深度学习流水线并行 PipeDream(3)--- 转换模型

    [源码解析] 深度学习流水线并行 PipeDream(3)--- 转换模型 目录 [源码解析] 深度学习流水线并行 PipeDream(3)--- 转换模型 0x00 摘要 0x01 前言 1.1 改 ...

  8. WEB漏洞——CSRF、SSRF

    CSRF漏洞 CSRF( Cross- site request forgery,跨站请求伪造)也被称为 One Click Attack或者 Session Riding,通常缩写为CSRF或者XS ...

  9. Python习题集(十一)

    每天一习题,提升Python不是问题!!有更简洁的写法请评论告知我! https://www.cnblogs.com/poloyy/category/1676599.html 题目 如果一个正整数等于 ...

  10. MongoDB(9)- 文档查询操作之 find() 的简单入门

    find() MongoDB 中查询文档使用 find() find() 方法以非结构化的方式来显示所要查询的文档 语法格式 db.collection.find(query, projection) ...