版本比较
[2025 代码源贵阳线下集训 油鸡] 属于谁的期待
标题
增加 1 行删除 1 行
112025代码源鬼氧挤迅油鸡[2025 代码源贵阳线下集训 油鸡] 属于谁的期待正文
增加 161 行删除 0 行
76 行未改动777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024176 行未改动
一个平凡的早晨。
艹,酸奶怎么这么贵??????
听说今天有膜你赛,也是直接吓腿软了。
### 简单区
#### T1
蛮复杂的小膜你,有小细节得注意。
#### T2
好像月赛题,颗秒了
#### T4
前缀和,但是秒杀
#### T5
谁家好人T5是排序数组啊??(大雾
### 压轴区
#### $\color{purple}{T6}$
用俩先进先出的东西维护一下,如果是大写进第一个,小写进第二个,再判一下b和B就AC了。
### $\color{red}{T3}$吐槽一下,出题人是不是最近在play mc
考场思路忘光了,反正就是正数不管,负数用【数据删除】器。
考场怒码100行⑩山
贴代码(很有意思
```cpp#include<bits/stdc++.h>using namespace std;int main() { int q; cin >> q; while (q--) { char s[101010] = {0}; cin >> s + 1; int x = stoi(s + 1); if (abs(x) < 100) { if (x >= 0) { cout << x << endl; } else { if (x < 0 && x > -10) { cout << x << endl; } int ma = 0, its = 0; for (int i = 2; i <= strlen(s + 1); i++) { if (s[i] > ma) { ma = s[i]; its = i; } } bool ok = 0; for (int i = 1; i <= strlen(s + 1); i++) { if (i == its || s[i] == '-')continue; else if (s[i] != '0')ok = 1; } if (!ok) { cout << 0; } else { int ind = 1; while ( 1 ) { if (ind == its) { ind++; continue; } if (s[ind] == '-') { ind++; continue; } if (s[ind] != '0')break; ind++; } cout << '-'; for (int i = ind; i <= strlen(s + 1); i++) { if (i == its)continue; else cout << s[i]; } } cout << endl; } } else { if (x >= 0) { cout << x << endl; } else { int ma = -1e9 + 1, its = 0; bool ok = 0; vector<int> v1; for (int i = 2; i <= strlen(s + 1); i++) { int top = 0; char t[100001] = {'-'}; for (int j = 2; j <= strlen(s + 1); j++) { if (j == i)continue; else t[++top] = s[j]; } v1.push_back(stoi(t + 1) - 2 * stoi(t + 1)); } int it = 1; for (int i : v1) { if (i > ma) { ma = i; its = it; } it++; } for (int i = 1; i <= strlen(s + 1); i++) { if (i == its + 1 || s[i] == '-')continue; else if (s[i] != '0')ok = 1; } if (!ok) { cout << 0; } else { int ind = 1; while ( 1 ) { if (ind == its + 1) { ind++; continue; } if (s[ind] == '-') { ind++; continue; } if (s[ind] != '0')break; ind++; } cout << '-'; for (int i = ind; i <= strlen(s + 1); i++) { if (i == its + 1)continue; else cout << s[i]; } } cout << endl;// for (int i : v1) {// cout << i << ' ';// }// cout << "its=" << its; } } }}```
WA/TL了32发AC也是吴迪了。
T3是最后30min调出来的,那是特别特别绝望的时刻,认识的很多人都AK了,左手边的打捞早就AK了,室友AK了俩,后排的女生一声“nice”,一刷新榜单,欸,她也AK了,~~没事,AK就行~~。
然后开始画字符画,画的摆烂证,然后被捞尸说在打游戏也是无弟了。
好了,罚坐结束,和室友聊模拟赛,发现有入T5用了俩前缀和/bx/bx/bx/bx。
午饭,品尝到了奥力给酸奶
度过了一个~~没羞没臊~~的中午