当前位置:网站首页>Notes for csp-j / s 2020
Notes for csp-j / s 2020
2020-11-09 12:53:00 【osc_lnhxmt4i】
Write only the things that are easy to notice , If you have stressed it many times, don't write it .
Before the game
- Try to arrive as early as possible , Don't be late .
- Never take a negative mood , Or it will explode 0.
- meditation , Base is not recommended .
- Be sure to relax ,
Be nervous after the exam. - listen 《 You copy 》 Other songs
In the game
About compilation errors
- Double underscores are prohibited , such as __gcd
- Get the variable name in Chinese , For example pipe Change to guanzi( Be careful not to use size, next, x0, x1, y0, y1, left, right, max, min, time, Otherwise, he will die miserably )
- Don't change the code at the end of the exam , To the end CE Is it miserable
- Silly , Commit without running
- Forget to play NOI Linux It's running
About WA
- Turn the array small , Especially not much smaller ( such as int a[200], And then I visited a[200]), There's something magical (UB);
- Be sure to take photos , Especially the conclusion question ( Greedy question )、 Data structure and d p dp dp topic , Data needs to be stronger .
- The function of judging which part is wrong , It wasn't even written at all
- It's hard to empty , detonation 0 Two lines of tears
- No special judgment , Especially trees / It's just 1-2 When there are nodes
- Overflowed …… Did you take the mold ? Did you write high precision ?
- A cause of shame —— Mix fast reading with ios Optimize
syn Optimize
About TLE/MLE/RE
RE:
- Your array is down , Please turn it up
- Your modulus won't be 0 Well ……
MLE:
It's horrible , One point MLE The whole sentence is 0 0 0 Divide up
-
The array is too big ……
Be careful ,int You can only drive to 8 × 1 0 7 8×10^7 8×107, long long You can only drive to 4 × 1 0 7 4×10^7 4×107 -
d f s dfs dfs when :
void dfs(int now,int fath)
{
int a[200005];
for (int i=head[now];i;i=e[i].next)
{
if (e[i].to!=fath) dfs(e[i].to,now);
}
}
When the tree is a chain , Just MLE 了 ……
TLE:
- Please identify the time complexity of your program
- No use memset, Never use this function , Pit the dead
- You're stuck , Optimize it
About unconventional questions
- The answer question is not submitted by writing code
- Don't play with interactive questions fflush(stdout);
About file manipulation / file name
- Check the file operation carefully !
- Don't write your admission card number wrong ,
Then you will AK Become someone else AK 了 …… - Upload failed , Please confirm the number of bytes you submitted with the invigilator after you submit the code .
About strategy
This is a duyi Giant guy's Examination Strategy , The original link is in this
My exam strategy is (CSP-S):
Look at all the questions first .
①T1 Cut off , Or think about it for a while , It should be able to do it anyway , Restriction on 30 30 30 Within minutes
②T2 Fierce and strong , flowers 1.5 h 1.5h 1.5h about , High marks or guarantees AC Look at the rear drive T3
③T3 Fierce and strong , word 1.5 h 1.5h 1.5h about , High marks or guarantees AC Go to see T4
④T4 flowers 15 − 20 15-20 15−20 Minutes of violence ;
⑤ Check something , Like file manipulation 、 file name 、 The number of bytes and so on ;
⑥ Check with the invigilator after you hand in the paper , And leave the examination room quickly , Go back to culture class
Particular attention , I am here. T 1 , T 2 , T 3 , T 4 T1, T2, T3, T4 T1,T2,T3,T4 It corresponds to four different levels of difficulty in the test paper , Not in order A , B , C , D A,B,C,D A,B,C,D topic .
About the way of thinking
- Be sure to play with the sample !
- I won't think twice
- Skillfully use root sign divide and conquer
- You have to look at the data range ,T1 You don't have to look at the parts ,T2, T3 It is suggested that we should take a good look at some points
① what ? n ≤ 100 , t ≤ 1 0 18 n≤100, t≤10^{18} n≤100,t≤1018? This is the moment multiplication !
② what ? n ≤ 1 0 4 n≤10^4 n≤104? This is often a card problem or big data structure problem .
…… - At least think about a topic 30 30 30 minute , You have to think it's simple , Or you can't even think about it .
- Mathematical induction 、 Looking for a regular
版权声明
本文为[osc_lnhxmt4i]所创,转载请带上原文链接,感谢
边栏推荐
- EFF 认为 RIAA 正在“滥用 DMCA”来关闭 YouTube-DL
- 从编码、网络传输、架构设计揭秘腾讯云高质量、高可用实时音视频技术实践...
- Kubernetes业务日志收集与监控
- JVM learning (4) - garbage collector and memory allocation
- 微信视频号播主排行榜2020年10月
- Interface tests how to pass files in post requests
- 嗯,查询滑动窗口最大值的这4种方法不错...
- 基于synchronized锁的深度解析
- Efficient estimation of word representations in vector space
- 10款必装软件,让Windows使用效率飞起!
猜你喜欢
Kubernetes业务日志收集与监控
使用TreeView树型菜单栏(递归调用数据库自动创建菜单)
Rainbow sorting | Dutch flag problem
Is multithreading really faster than single threading?
JVM学习(四)-垃圾回收器和内存分配
AI fresh student's annual salary has increased to 400000, you can still make a career change now!
Implement crud operation
Oh, my God! Printing log only knows log4j?
vscode 插件配置指北
Clock service Android implementation of alarm clock
随机推荐
Use treeview tree menu bar (recursively call database to create menu automatically)
Nine kinds of distributed primary key ID generation schemes of sub database and sub table are quite comprehensive
IDEA rest-client,会了它我还没打开过postman
Is SEO right or wrong?
Technology and beauty are so expensive, it's better to find consultants | aalab enterprise consulting business
Wechat circle
Tidb x micro banking reduces time consumption by 58%, and distributed architecture helps to realize inclusive finance
After SQL group query, get the first n records of each group
Depth analysis based on synchronized lock
Ali, Tencent, Baidu, Netease, meituan Android interview experience sharing, got Baidu, Tencent offer
Efficient estimation of word representations in vector space
用一种简单的方式实现终端文字粘贴板
A simple way to realize terminal text paste board
块级元素和行内元素
Android studio import customized framework classess.jar As 4.0.1 version is valid for pro test
Well, these four ways to query the maximum value of sliding window are good
彩虹排序 | 荷兰旗问题
大型项目Objective-C - NSURLSession接入短信验证码应用实例分享
分库分表的 9种分布式主键ID 生成方案,挺全乎的
在企业的降本增效诉求下,Cube如何助力科盾业务容器化“一步到位”?