GZ NOIP2024 迷惑行为大赏
__staring__
·
·
休闲·娱乐
如果您发现上榜但不想被收录,或是未上榜想被收录,可以联系作者
以下代码不代表作者观点,类似迷惑行为基本只收录了编号最靠前的一位
统计工具: vsc+cmd
统计
本次参加 GZ NOIP2024 的 118 人,在 4.5h 内,创建了 116 个一级文件夹, 336 个均为 .cpp 的文件,以及 33 个空二级文件夹
那么少了谁呢?答案是缺考的两位
以及,写下了
$289$ 个 `bits/stdc++.h` , $12$ 个 `cstdio` , $16$ 个 `cmath` , $39$ 个 `iostream` , $23$ 个 `algorithm` , $231$ 个 `define` , $1$ 个 `ak`
正则 `qwq|qaq` 匹配到 $20$ 个结果
正则 `(assign|edit|traverse|query)[1-9].` 匹配到 $13$ 个结果,无一例外均被注释
# 码长
在所有通过了 T1 edit 的代码中,恭喜
GZ-0081 以 $1411$ byte 获得最短代码
GZ-0008 以 $3950$ byte 获得最长代码,一骑绝尘
在所有通过了 T2 assign 的代码中,恭喜
GZ-0010 以 $953$ byte 获得最短代码,一骑绝尘
GZ-0006 以 $1870$ byte 获得最长代码
T3 traverse 与 T4 query 无人通过
## 大赏
那么接下来就是 ~喜闻乐见~ 闻者落泪听者伤心的迷惑行为大赏环节
## GZ-0002
### define 人
```cpp
#define int long long
#define ll long long
#define ull unsigned ll
#define For(i,a,b) for(int i=a;i<=(b);i++)
#define Rof(i,a,b) for(int i=a;i>=(b);i--)
#define vi vector<int>
#define pii pair<int,int>
#define x first
#define y second
#define pb push_back
#define BG(x) (x.begin())
#define ED(x) (x.end())
#define SZ(x) ((int)x.size())
#define gmin(x,y) (x=min(x,y))
#define gmax(x,y) (x=max(x,y))
#define MD(x) ((x)%=mod)
```
### 读题不认真人
```cpp
int ask(int ql,int qr) {
int x=MN.ask(ql,qr),y=MX.ask(ql,qr);
return lca(x,y);
}
...
while(Q--) {
int ql=read(),qr=read(),K=read();
printf("%d\n",ask(ql,qr));
}
```
## GZ-0006
### using 人
```cpp
using i64=long long;
using u64=unsigned long long;
using i32=int;
using u32=unsigned int;
using i16=short;
using u16=unsigned short;
using i8=char;
using u8=unsigned char;
using pii=pair<int,int>;
```
## GZ-0008
### 代码备份人

## GZ-0009
### include 人
```cpp
#include<iostream>
#include<queue>
#include<stdlib.h>
#include<stack>
#include<algorithm>
#include<vector>
#include<ctime>
#include<string.h>
#include<math.h>
```
## GZ-0010
### 局部 struct 不初始化人
```cpp
struct sub2
{
int ver[N];
void dfs(int u,int f)
{
ver[++ver[0]]=u;
for(int i=he[u];i;i=ne[i])
{
int v=to[i];
if(v!=f)dfs(v,u);
}
}
...
void solve()
{
dfs(1,0);
...
{sub2 s;s.solve();return 0;}
```
### 足不出户人
```cpp
void dfs(int u,int f)
{
for(int i=he[u];i;i=ne[i])
{
int v=to[i];
if(v==f)continue;
dfs(u,v);
}
}
```
## GZ-0011
### 啥都不做人
```cpp
int main()
{
freopen("query.in","r",stdin);
freopen("query.out","w",stdout);
return 0;
}
```
## GZ-0013
### .cpp.cpp 人

### //freopen 人
```cpp
int main(){
//freopen("edit.in","r",stdin);
//freopen("edit.out","w",stdout);
cin >> t;
while(t){
```
## GZ-0014
### CE 人
```cpp
void dfs(int cur) {
...
if (vis[c[i]]) {
dfs(cur + 1);
}
```
## GZ-0018
### 恶意评测人
```cpp
int main() {
while (1);
}
```
## GZ-0020
### 缺省源人
```cpp
#define int long long
#define FOR(i,a,b) for(int i=(a);i<=(b);++i)
#define FOR_(i,a,b) for(int i=(b);i>=(a);--i)
#define fir first
#define sec second
#define pb push_back
namespace FastIO{
#define gc getchar
inline int rd(){int x=0,w=0;char c=gc();while(c<'0'||'9'<c)w^=(c=='-'),c=gc();while('0'<=c&&c<='9')x=x*10+c-'0',c=gc();return w?-x:x;}
template<typename T>inline void write(T x){if(!x)return;write(x/10),putchar(x%10+'0');}
template<typename T>inline void print(T x){return x?((x<0)?(putchar('-'),write(-x),void()):(write(x),void())):(putchar('0'),void());}
template<typename T>inline void print(T x,char c){print(x),putchar(c);}
#undef gc
}
#define rd FastIO::rd
#define print FastIO::print
using i128=__int128;
using ull=unsigned long long;
using pii=pair<int,int>;
template<typename T>inline void ckmax(T &x,T y){x=(x>y)?x:y;}
template<typename T>inline void ckmin(T &x,T y){x=(x<y)?x:y;}
mt19937 rnd(chrono::system_clock::now().time_since_epoch().count());
```
### qwq 人
```cpp
int n,m,V,C[N],D[N],qwq[N],ans=0,a[N],b[N];
bool chk(){
FOR(i,1,n)qwq[i]=-1;
FOR(i,1,m){
if(qwq[C[i]]!=-1&&qwq[C[i]]!=D[i])return 0;
qwq[C[i]]=D[i];
}
FOR(i,1,n-1)if(qwq[i]==a[i]){
if(qwq[i+1]!=-1&&qwq[i+1]!=b[i])return 0;
else qwq[i+1]=b[i];
}
return 1;
}
```
## GZ-0026
### 啥都不做的 CE 人
```cpp
#include<bits/stdc++.h>
using namspace std;
int main()
{
return 0;
}
```
## GZ-0029
### 神秘 define 人
```cpp
#define JJ return
#define Jj break
#define jj continue
```
### 返回爱你人
```cpp
int main()
{
freopen("traverse.in","r",stdin);
freopen("traverse.out","w",stdout);
while(1)
{
cout<<"JJ.I love you."<<endl;
}
JJ 0;
}
```
### 爱(A)看(K)同学的恶意评测 CE 人
```cpp
int main()
{
freopen("query.in","r",stdin);
freopen("query.out","w",stdout);
while(1)
{
cout<<"I AK zhanghai."<<endl
}
JJ 0;
}
```
## GZ-0032
### 输出样例人
```cpp
int main(){
freopen("assign.in","r",stdin);
freopen("assign.out","w",stdout);
cout<<"4"<<endl;
cout<<"3"<<endl;
cout<<"0"<<endl;
fclose(stdin);
fclose(stdout);
return 0;
}
```
## GZ-0040
### 随机输出人
```cpp
int main(){
freopen("traverse.in","r",stdin);
freopen("traverse.out","w",stdout);
scanf("%d %d",&c,&t);
for(int i=0;i<t;i++){
printf("%lld\n",rand()%1000000007);
}
fclose(stdin);
fclose(stdout);
return 0;
}
```
## GZ-0065
### scnaf 人
```cpp
scnaf("%d%d",&c,&t);
```
## GZ-0071
### //freopen 人
```cpp
int main(){
//freopen("assign.in","r",stdin);
//freopen("assign.out","w",stdout);
int T;
cin>>T;
```
### 输出到 query.in 人
```cpp
int main(){
freopen("query.in","r",stdin);
freopen("query.in","w",stdout);
```
## GZ-0073
### 猫娘
```cpp
edit.cpp: //写不起喵 qAq
assign.cpp: //不会搜索喵 qAq
traverse.cpp: //呜呜呜没学过爬树喵 qAq
query.cpp: //呜呜呜为什么两道爬树喵 题面的不等式是什么东西喵 看不懂喵 qAq
```
## GZ-0082
### slove 人
```cpp
void slove(int a[],int b[],int vis[],int d[]){
```
## GZ-0088
### 神秘 freopen 人
```cpp
int main(){
freopen("edit1.in","r",stdin);
//freopen("edit2.out","w",stdout);
T=read();
cin.tie(0);
while(T--){
```
## GZ-0090
### memset 人
```cpp
memset(l2,0,sizeof(l2));
memset(l1,0,sizeof(l1));
memset(fs10,0,sizeof(fs10));
memset(fs20,0,sizeof(fs20));
memset(fs21,0,sizeof(fs21));
memset(fs11,0,sizeof(fs11));
memset(a,0,sizeof(a));
memset(p1,0,sizeof(p1));
memset(b,0,sizeof(b));
memset(p2,0,sizeof(p2));
```
## GZ-0094
### QAQ 人
```cpp
//AAAAAAAAAAAA死了 为什么读不了A??QAQ 调好久啊.... 结束了么.... 为什么数据量大了ch就不能使用了? 我ch[N] N开了1e5+10 啊
//关闭解绑吗!!!!!!!我试试!!! 浪费40分钟
//使用 char c;然后getchar读入??? 浪费40分钟 +1
//string?? 浪费2分钟 (这玩意更读不了1e5的数据了啊
//想了好久难道死在读取上吗 QWQ---
//数据小于1e4的测试点全对啊!!!!!!!!
//不要啊
//www
//12:59 -----
//寄QAQ
...
//QAQ
...
//感觉好像是贪心啊QAQ
...
////cccccccccc 这些好像都不对www 到底怎么写...
//好耶 !!对了
//数据怎么读...................QQQQQQQQQWQQQQQQQQQQQQQ;
...
//四个半小时第一题没写懂,死了死了死了死了死了死了死了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
```
## GZ-0096
### 强大 fstream 人
```cpp
int main(){
ifstream fin("edit.in");
//ifstream fin("C:/Users/Administrator/Desktop/down/down/day0/edit/edit1.in");
ofstream fout("edit.out");
```
## GZ-0099
### 输出样例人 pro
```cpp
if(T==3)
{
cout<<4<<endl;
cout<<3<<endl;
cout<<0<<endl;
}
if(T==10)
{
cout<<256<<endl;
cout<<0<<endl;
cout<<4096<<endl;
cout<<129600<<endl;
cout<<4194304<<endl;
cout<<503279958<<endl;
cout<<748525720<<endl;
cout<<892897109<<endl;
cout<<174281099<<endl;
cout<<418965370<<endl;
}
if(T==10&&n[0]==2763)
{
cout<<622513748<<endl;
cout<<547054119<<endl;
cout<<935264382<<endl;
cout<<797858048<<endl;
cout<<656531230<<endl;
cout<<561087816<<endl;
cout<<0<<endl;
cout<<0<<endl;
cout<<0<<endl;
cout<<104354915<<endl;
}
```
## GZ-0101
### 万能头写错人
```cpp
#include <bits/std.c++>
```
## GZ-0103
### freopen 不写全人
```cpp
freopen("traverse.in","r",stdin);
freopen("traverse.out",stdout);
```
## GZ-0104
### 字符画人
```cpp
/*
xdm,退役了
NOIP再也不见
旁边有一个zz
键盘打得劈里啪啦的
我整场比赛都在听他滚键盘,
欺人太甚,心烦意乱
真想给他两笔都
EHUM
——————————————
| |
| O O |
| |
| ________ |
| / \ |
| | | |
|_____________________________|
\\|||| |||||
||||| |||||
*/
```
## GZ-0106
### 输出样例人 pro plus
```cpp
if (c == 1) {
cout << 2;
}
if (c == 4) {
cout << 590831999 << endl;
cout << 218310604 << endl;
cout << 553704819 << endl;
cout << 611914763 << endl;
cout << 129083684 << endl;
cout << 549899521 << endl;
cout << 942879215 << endl;
cout << 401695939 << endl;
cout << 953249799 << endl;
cout << 104628653 << endl;
}
if (c == 7) {
printf("120921679\n711250953\n236052519\n247400497\n185096902\n515754278\n697808046\n964011498\n797232094\n648145770");
}
if (c == 11) {
printf("106097486\n843653331\n781815189\n925803540\n838956086\n782737732\n813998896\n62060662\n70314584\n164141601");
}
if (c == 13) {
printf("960085142\n497070022\n731920055\n335265011\n995565022\n215067069\n74586536\n145976650\n878304066\n867127888");
}
if (c == 15) {
printf("230236467\n203209985\n695073397\n543828091\n103721224\n769490984\n274665683\n329036606\n287825437\n737478978");
}
if (c == 16) {
printf("774913266\n533643544\n981545496\n846231853\n846231853\n846231853\n898756409\n533643544\n186985190\n171483184");
}
if (c == 18) {
printf("1\n1\n1\n1\n1\n1\n1\n1\n1\n1");
}
if (c == 19) {
printf("351948828\n648676227\n947641997\n897228004\n794407216\n580598095\n111804714\n534487234\n172253681\n679088770");
}
if (c == 22) {
printf("952770525\n458942671\n403384174\n717735725\n450995491\n729885956\n41624010\n549302637\n807296290\n542889077");
}
if (c == 24) {
printf("513190359\n830514914\n482588486\n98079475\n60544858\n110501533\n378742765\n354156160\n109288479\n817264252");
}
```
## GZ-0111
### 非压行 if 赋值人
```cpp
if(s1=s2){
for(int c=1;c<=n;c++){
printf("%d",c);}
}
```
### freclose 人
```cpp
//freclose("edit","w",stdout);
```
## GZ-0114
### 话虽如此人
```cpp
int n,s1[100005],s2[100005],T,c1[100005],c2[100005],ans,cnt[100005][2][2],fa[100005][2];
...
//不开longlong见祖宗
```
### 说到做到人
```cpp
const ll mod=1000000007;
ll n,m,v;
struct num{
ll x,v;
}a[1000005];
ll qp(ll a,ll x){
ll p=a,sum=1;
for(ll i=0;(1<<i)<=x;i++){
if((1<<i)&x){
sum*=p;
sum%=mod;
}
p=p*p%mod;
}
return sum;
}
...
//不开longlong见祖宗
```
那么 GZ NOIP2024 迷惑行为大赏就到这里,比较可惜的是没有人整花活,希望各位 GZ 选手在这个赛季接下来的比赛中做大做强,也希望来年的赛季能看到百活齐整