Giter Site home page Giter Site logo

ccf-csp-pat's Introduction

CCF-CSP-PAT

CCF CSP 认证小白入门

本文适合有些编程基础知识,但是对 CCF CSP 完全不知道的童鞋


基础知识

官网

计算机软件能力考试认证,简称软件能力认证。

CCF 计算机职业资格认证系列一 CCF 软件能力认证 Certified Software Professional(CSP)

基础知识:

  • 程序设计基础
  • 数据结构
  • 算法与算法设计策略

编程语言:

  • C/C++
  • Java
  • Python

历届认证总体情况

每届参加人数 6000-10000 多,满分 500,平均分 150。

可以看成 100 分的卷子,平均分 30 分,可见这个考试的门槛还是比较高的。


基础环境搭建

一般用户的操作系统为以下 3 个平台

  • Windows
  • Linux
  • macOS

编程环境还是强烈推荐用 VSCode

windows 环境配置可以参考下面这篇文章

挑把趁手的兵器——VSCode 配置 C/C++学习环境(小白向)

Linux 用户肯定各个都是大神,我们膜拜就好了,这篇文章不大适合你。

macOS 可以参考我的后续


macOS 环境搭建

依赖

  1. AppStore 安装 Xcode 的最新版本(免费)
  2. 在 Xcode 里面安装 CommandLineTools(免费)
  3. 安装 homebrew

开发环境:

  1. 下载安装 VSCode
  2. 安装 c++扩展

github

https://github.com/richenyunqi/CCF-CSP-and-PAT-solution

做题模版

#include <bits/stdc++.h> // 万能头文件
using namespace std;     // 使用标准命名空间
using gg = long long;    //(C++11)超长整形 至少64位
int main()
{
  // 辅助调试用, 提交前删除这一行
  freopen("CCF-201312-3.txt", "r", stdin); // 测试用例写在CCF-201312-3.txt里

  ios::sync_with_stdio(false); // 标准输入
  cin.tie(0);                  // 标准输入

  gg n;
  cin >> n; //读取输入,赋值到n上

  // your code

  cout << n; // 标准输出 答案
  return 0;
}

坑点

setprecision

http://c.biancheng.net/view/1340.html

fixed

http://c.biancheng.net/view/1341.html

如果一个数字太大,无法使用 setprecision 指定的有效数位数来打印,则许多系统会以科学表示法的方式打印。

常见问题

万能头文件无法加载

error: 'bits/stdc++.h' file not found with <angled> include; use "quotes" instead
#include <bits/stdc++.h>
         ^~~~~~~~~~~~~~~
         "bits/stdc++.h"
1 error generated.

https://www.zhihu.com/question/64960364/answer/226132659 上面的方法不灵,我删除了 xcode (太占空间)

cd /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1

mkdir bits

cp ~/Downloads/stdc++.h bits/

把 stdc++.h 放到这个目录

/usr/local/include/bits

利用 freopen 取代传统的手动输入测试数据

freopen("201912-1.txt", "r", stdin); //提交前删除
4 4 16
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15

ccf-csp-pat's People

Contributors

fox3000wang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.