跳到正文

个人记录

考试复盘 8.23 朱泽宇

__GG__Bond__约 10 分钟
原文
文章信息与版本

文章信息

发布
2026年8月23日
收录
2026年8月23日
更新
2026年11月14日
篇幅
约 10 分钟

版本

  1. v1当前

总结

考场复盘

心态状态:

嗯对,依旧平稳,大脑无卡顿

做题策略:

T1:试了queue和stack,发现都是反的,就用了deque

T2:开始以为是int就解决的事,秒了,结果后来估分时一看范围竟是高精,重构了一遍就对了

T3:刚把输入完成就没思路了,就用猎奇公式骗了一个分

T4:想到了可以AC的(猎奇做法、正解),结果实现时写错了,和实际想法有一些偏差

时间分配:

T1:10min

T2:90min

T3:20min

T4:20min

整体难度:

正常难度,

T1<T4<T2<T3

(这是代码难度)

整体得分:

T1T2T3T4总体
预估得分100/100\color{#19be6b}{100}{/100}100/100\color{#19be6b}{100}{/100}0/100\color{red}{0}{/100}40/100\color{#2d8cf0}{40}{/100}300/400
实际得分100/100\color{#19be6b}{100}{/100}100/100\color{#19be6b}{100}{/100}45/100\color{#2d8cf0}{45}{/100}70/100\color{#2d8cf0}{70}{/100}200/400
改进有思路一定要严格按照思路去写(就算是猎奇思路)

机房排名:2/16

T1

没找到!!!

核心考点:模拟

正解代码
C++
#include<bits/stdc++.h>
using namespace std;
int main() {
	freopen("backspace.in", "r", stdin);
	freopen("backspace.out", "w", stdout);
	int n;cin >> n;
    string s = "";
	for(int i = 1; i <= n; i++) {
		char x;
		cin >> x;
		if(x == '#') {
			if(!s.empty()) s.pop_back();
		} else {
			s.push_back(x);
		}
	}
    cout << s << endl;
	return 0;
} 
T2

没找到!!!

核心考点:高精除低精

正解代码
C++
#include<bits/stdc++.h>
using namespace std;
int main() {
	freopen("division.in", "r", stdin);
	freopen("division.out", "w", stdout);
	string s;
	int b, lst = 0;
	cin >> s >> b;
	vector<int> a, ans;
	for(char ch : s) a.push_back(ch - '0');
	for(int i = 0; i < a.size(); i++) {
		if(lst * 10 + a[i] < b) {
			lst = a[i];
			if(i != 0) ans.push_back(0);
			continue;
		}
		int tmp = lst * 10 + a[i];
		int an = tmp / b;
		ans.push_back(an);
		lst = tmp - an * b;
	}
	for(int i = ans.size() + 1; i <= a.size() + 2; i++) cout << ' ';
	for(int i : ans) cout << i;
	cout << endl;
	cout << b << '|' << s << endl;
	lst = 0;
	if(a.size() - ans.size() > 0) lst = a[a.size() - ans.size() - 1];
	int lstw = 0;
	for(int i = 0; i < ans.size(); i++) {
		int A = a[i + a.size() - ans.size()] + lst * 10, stw = 2;
		while(A) {
			stw++;
			A /= 10;
		}
		if(i != 0) stw = lstw;
		else {
			while(A) {
				stw++;
				A /= 10;
			}
		}
		cout << setw(i + stw) << a[i + a.size() - ans.size()] + lst * 10 << endl;
		cout << setw(i + stw) << ans[i] * b << endl;
		int tmp = a[i + a.size() - ans.size()] + lst * 10, cnt = 0;
		lst = a[i + a.size() - ans.size()] + lst * 10 - ans[i] * b;
		while(tmp) {
			cnt++;
			tmp /= 10;
		}
		if(cnt == 0) cnt++;
		string s;
		while(cnt--) s.push_back('-');
		cout << setw(i + stw) << s << endl;
		lstw = stw;
	}
	cout << setw(a.size() + 2) << lst << endl;
}
T3

没找到!!!

核心考点:二分

考场思路:骗分(猎奇骗分)

正解思路:二分

正解代码

T4

没找到!!!

核心考点:思维能力

考场思路:猎奇方法

正解思路:猎奇方法(可能吧)

正解代码
C++
#include<bits/stdc++.h>
using namespace std;
priority_queue<int, vector<int> > q;
signed main() {
	freopen("zero.in", "r", stdin);
	freopen("zero.out", "w", stdout);
	int n;
	cin >> n;
	for(int i = 1; i <= n; i++) {
        int x;
        cin >> x;
        q.push(x);
    }
	while(q.size() > 1) {
		int x = q.top();
		q.pop();
		int y = q.top();
		q.pop();
		q.push(x - y);
		cout << x << ' ' << y << endl;
	}
	return 0;
}

::::::

另

今天是牢大的48岁生日

牢大,我想你了~

以一首歌祭奠他

see you again

曼巴永恒!

复盘不是抄题解, 是复刻自己考场大脑, 把考试的教训变成自己的能力。

——char
原文