等级考试是否有用?
首先,在当下的教育环境下,但凡是等级考试证书效力都不高。比如书法、钢琴等等,不仅仅是编程。然而,在某些中小学中可以作为加分项,而非硬性指标。
等级考试前三级难度都很低,只要正常学习都可以通过,题目知识点内容少,题型相对固定,以考核知识点为目的,不是竞赛性质。
培养兴趣需要做题吗?
之前发布一篇等级考试介绍,和2022年6月真题,很多朋友评论说兴趣最重要,不推荐考一些不重要的证书。
个人认为,兴趣本身是一个伪命题,对于大多数人包括本人在内都是平凡人类,很难从小就表现出某一方面的天赋或热爱。而对于普通人的学习就是模仿、练习、创新,也就是“学”和“习”。
编程领域的量化标准实则相对固定,比如程序员考察编程水平主要就是笔试算法题。编程无论是否是兴趣爱好还是专业学习,都应具备一定的基础逻辑能力,独立实现简单的经典算法能力。
因为如果没有一定基础,为了快速实现项目效果而学习,期间会历经无数的bug和阻碍,而且很难独立实现。如果是直接运行修改老师的项目也没有什么兴趣可言,因为为了编程而设计的小游戏和真正流行的游戏比起来相差甚远,不值一提。
如果学习编程,通过简单的考试练习巩固基础知识还是有一定必要的,这是其中一种量化标准。
2022年9月一级真题
刚刚在网络上搜索一下最近真题,一般等级考试真题没有专门测评器,就手动生成了一批测试数据,以供学生练习自动评分。
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
cout << c << " " << a << " " << b << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int s;
cin >> s;
if(s >= 60) cout << "P" << endl;
else cout << "F" << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if(a > b){
int t = a;
a = b;
b = t;
}
if(a > c){
int t = a;
a = c;
c = t;
}
if(b > c){
int t = b;
b = c;
c = b;
}
cout << a << " " << b << " " << c << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int n, res = 0;
cin >> n;
for(int i = 1; i <= 5; i++){
int x;
cin >> x;
if(x < n)
res += x;
}
cout << res << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int calc(int n){
int res = 0;
while(n){
if(n % 10 == 1) res++;
n /= 10;
}
return res;
}
int main() {
int n, res = 0;
cin >> n;
for(int i = 1; i <= n; i++){
res += calc(i);
}
cout << res << endl;
return 0;
}
2022年3月一级真题
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
double a;
cin >> a;
printf("%.8lf\n", a);
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
cout << a * 3 + b << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int n;
cin >> n;
int res = 0;
while(n--){
int a, b;
cin >> a >> b;
if(a > b) res += 3;
else if(a == b) res++;
}
cout << res << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
char ch;
cin >> ch;
if(ch >= 'a' && ch <= 'z') cout << "yes" << endl;
else cout << "no" << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
bool check(int n){
if(n % 7 == 0)
return false;
while(n){
if(n % 10 == 7)
return false;
n /= 10;
}
return true;
}
int main() {
int n;
cin >> n;
int res = 0;
for(int i = 1; i <= n; i++)
if(check(i))
res += i * i;
cout << res << endl;
return 0;
}
2021年9月真题
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
long long a, b;
cin >> a >> b;
cout << b << " " << a << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
long long a, b;
cin >> a >> b;
cout << a * b << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
char ch;
cin >> ch;
if(ch >= '0' && ch <= '9') cout << "yes" << endl;
else cout << "no" << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int n, k, res = 0;
cin >> n >> k;
while(n--){
int x;
cin >> x;
if(x % 10 == k)
res += x;
}
cout << res << endl;
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
bool is_prime(int n){
for(int i = 2; i < n; i++)
if(n % i == 0)
return false;
return true;
}
int main() {
int n;
cin >> n;
for(int i = n - 1; i >= 2; i--){
if(is_prime(i)){
cout << i << endl;
return 0;
}
}
return 0;
}
2022年6月真题视频讲解
视频加载中...