// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.
// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
/** @file stdc++.h
* This is an implementation file for a precompiled header.
*/
// 17.4.1.2 Headers
// C
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif
// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
[P1讨论帖] 【P1解题讨论】新讨论
2025-11-16 20:03:57 By luxinglin
[P1270讨论帖] 【P1270解题讨论】新讨论
2025-02-10 23:00:51 By luxinglin

考试注意事项
2024-10-24 21:35:15 By luxinglin
2024CSP--蜗牛老师提醒你:
考试前
- 入门组考试时间为周六上午 8:30-12:00, 提高组时间为下午 14:30-18:30。均为四道题。
- 考试前准备好 准考证,身份证(有照片的医保卡,有照片的护照或两份带照片的学籍证明)这两个相应证件。
- 本年度分为两个考点,注意自己的考点,提前在考点允许的大门口集合候场。
- 赛场不提供笔,务必带好笔,两支以上。
- 比赛时间较长,可以根据个人情况准备好一些零食和水。
- 今年焦作地区的考生都在郑州大学主校区(郑州市高新区科学大道100号)
- 注意休息,考前不要过度兴奋,平和的心态进入考场。
- 注意身体,合理调节饮食,把身体调整到最好状态!
考试中
- 不要作弊。
- 不要携带 $\text{U}$ 盘、手机等电子设备进入考场。
- 进入考场后一定不要说话,如果键盘鼠标显示器等部件有问题,有问题举手和监考老师沟通。
- 开启电脑后检查电脑是否显示文件后缀名(扩展名),如果文件后缀名是隐藏状态要修改成显示状态:
- windows7系统。 计算机>>组织>>文件夹和搜索选项>>查看>>找到 "隐藏已知文件类型的拓展名",将 √ 取消。
- windows10系统。 此电脑>>查看>> 将 "文件扩展名"的 勾 选上。
- 在等待下发题面时,如果允许触碰键盘,可以先打好代码框架、快读、对拍程序等。
- 做题时仔细阅读题面,标注核心条件,理解题意后,再用样例验证自己思路是否正确,尤其注意每个部分分数据范围,这是你拿分的关键,代码尽量分段来写,较复杂的题目,尽量对拍;一样都不能少。
- 拿到题目,一定要四道题看懂,每道题都要仔细想一想。题目不一定按照你所掌握的难易程度来排列,最后一题的某些部分分也可能很好拿到,开始码代码之前,每道题一定要有清晰的算法流程。
- 对于较复杂的题目,一定要先写暴力程序,然后再考虑高分程序或优化暴力,后两题一定不要直接开始写正解!
- 当思路卡壳,及时重新读题,看是否有条件遗漏;当陷入调试的陷阱,反问自己,代码重构(把你的代码再写一遍)需要多久,如果不超过15分钟,那就重新开始写。
- 当正向去思考卡壳很久的时候,尝试倒着去推导;如果是求最优解问题很复杂,尝试用二分答案思想来转换思路,把求最优解问题转换为验证性问题。
- 合理使用函数来模块化,一定不要成段成段的复制粘贴代码,在修改时,最容易犯错!
- 10分也是分,30分也是分,尤其一等奖附近,10分可能就决定你是否能拿一等奖。
- 务必保证你写的分能拿到,不要嫌弃10分太少而懒得去写代码。
- 自己一定手工构造几组小数据,尤其边界数据($0$和最大值)来验证自己代码的正确性!
- 小数据写暴力,大数据要勇于使用不一定正确的贪心或dp来骗分!
- 合理使用上厕所洗把脸的机会,让自己冷静下来,换个思路,多问自己几个为什么?
- 放松心态,把自己会的都做对,你就是这场考试的胜利者,你的成绩也肯定比你想象中要好许多!
- 考试最后10分钟检查 $\text{freopen}$,检查C++源文件的命名,再最后运行下样例,确保你的代码删掉了打表和中间结果, 每道题都检查完毕之后再提交代码。
会做的题一定要写对。
平和良好的心态是你考试成功的关键,焦虑和急躁只会让你的考试崩掉!
合理规划时间,不要钻牛角尖,合理的放弃是为了保证其他的分数能拿到。
祝各位小蜗牛同学都可以心想事成。
p1270样例图片
2024-10-24 21:35:09 By luxinglin

英雄榜-静态榜12月26日
2023-09-01 12:44:41 By luxinglin
记:你可能没你想象的喜欢变化,又拒绝乏味。可是,世界是变化的,又是一成不变的。




