引流:
统计
- 选手个数:1231,其中 1223 人建了文件夹。
- 共有 4204 个文件,5622 个文件夹。
- 总大小 10.5MB。
- 1223 个 edit.cpp,1143 个 assign.cpp,902 个 traverse.cpp,936 个 query.cpp。
- 45 个文件中 123 个
//freopen。
迷惑行为
文件
- froepen(下面是一位学长,T2 100->0,默哀)
int main(){
froepen("assign.in","r",stdin);
freopen("assign.out","w",stdout);
scanf("%d",&T);
while(T--)
Solve();
}- “w”,stdin(一共 19 个,但大部分是注释中的)
signed main(){
freopen("assign.in","r",stdin);
freopen("assign.out","w",stdin);
scanf("%lld",&T);
while(T--){
...
}- txt
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen(".txt","r",stdin);
freopen(".txt","w",stdin);
fclose(stdin);
fclose(stdout);
return 0;
} - mian+多重读入+return 114514
#include<bits/stdc++.h>
using namespace std;
int mian(){
freopen("query.in","r",stdin);
freopen("query.in","r",stdin);
freopen("query.out","r",stdout);
freopen("query.out","w",stdin);
//�ҹ����
//��Ҫ��ө
return 114514;
}- 复制粘贴
//freopen("traverse.in","r",stdin);
//freopen("traverse.out","w",stdout);
//froepen("traverse.in","r",stdin);
//froepen("traverse.out","w",stdout);
//freopen("traverse.in","w",stdin);
//freopen("traverse.out","r",stdout);
//freopen("traverse.in",r,stdin);
//freopen("traverse.out",w,stdout);- 错误示范
/*
Why can't I understand what it said.
那就来点迷惑行为
feropen
//freopen
cin<<
cout>>
itn logn lgno
3倍*icecream!!!
不会要全部情况成立吧
O(n^n)暴力走起!(
暴力都打不出来。。。
又要挂了。。
诶!v<=2!
状压一手看行不行
12:17:写不出来。。。挂了
。。。
rp++;
rp++;
rp++;
rp++;
rp++;
*///freopen()
//froepen()
//edit2
//bits\stdc++.h
//mian
//slvoe
//x1,y1,x2,y2,next,node- 缅北人
//freopen(zhapian); - T5 题目名称 ccf
#include <bits/stdc++.h>
using namespace std;
int qwq[114514];
int main() {
freopen("ccf.in", "r", stdin);
freopen("ccf.out", "w", stdout);
/*
while(1)
rp++;
*/
return 0;
}- egg.out
// freopen("egg.out","r",stdin);//- 绝对路径
freopen("D:\\down\\day0\\traverse\\traverse5.in", "r", stdin);
// freopen("traverse.out", "w", stdout);代码
-
手动 O2(和文件 2 同一人)
#pragma GCC optimize("2")- 柚子厨+奶龙厨真恶心
if(114514 == 0x0d000721) cout << "BlckCrw Nai Long and SError_ is yuzu divide.";- 【数据删除】(同学)
}else{
puts("I love this shujushanchu wisdom T1 problem maker.");
puts("Which shujushanchu shujushanchu human makes this shujushanchu T1?");
puts("shujushanchu NOIP");
puts("AFO!!!");
}- 各种 ccf
int mx[N<<2],cnt[N],ccf[N];
...
int main(){
...
for(int i=1;i<=q;i++){
k=b[i].k;
// if(0){
if(cnt[k]>100&&k<=n-wtf){
if(b[i-1].k!=b[i].k)build(1,n-k+1,1);
ccf[b[i].i]=query(1,n-k+1,1,b[i].l,b[i].r-k+1);
}else{
int ans=0;
for(int j=b[i].l;j+k-1<=b[i].r;j++){
ans=max(ans,dep[get_range(j,j+k-1)]);
}
ccf[b[i].i]=ans;
}
}
for(int i=1;i<=q;i++){
printf("%d\n",ccf[i]);
}
}#include <bits/stdc++.h>
using namespace std;
const int N = 100240, M = N << 1, P = 1000000007;
int h[N], nxt[M], to[M], tt;
inline void AE(int x, int y)
{
nxt[++tt] = h[x], to[h[x] = tt] = y;
}
int CCF;
int f[N];
inline void Init(int n = 100000)
{
f[0] = f[1] = 1;
for (int i = 2; i <= n; ++i)
{
f[i] = 1ll * f[i - 1] * i % P;
}
}
inline void Solve()
{
int n, k;
cin >> n >> k;
fill(h + 1, h + n + 1, 0);
for (int i = 1; i < n; ++i)
{
int x, y;
cin >> x >> y;
AE(x, y);
AE(y, x);
}
if (CCF == 18)
{
while (k-- != 0)
{
int e;
cin >> e;
}
cout << "1\n";
}
else if (19 <= CCF && CCF <= 21)
{
int s = 0;
for (int i = 1; i <= k; ++i)
{
int e;
cin >> e;
s = ((s + f[n - 2]) % P - (i == 1 ? 0 : 1ll * f[n - 3] * (i - 1)) % P + P) % P;
}
cout << s << '\n';
}
else
cout << "1\n";
}
int main()
{
freopen("traverse.in", "r", stdin);
freopen("traverse.out", "w", stdout);
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
Init();
int t;
cin >> CCF >> t;
while (t-- != 0)
Solve();
return 0;
} /*
I love Firefly.
I love Nahida.
CCF,helps me!
I shall ... set the seas ablaze.
*/认 ccf 作父
/*
these problem is toooooooooooooooo difficult for me!!!!!!
help
father CCF give me 100 pts plzzzzzzzzzzzzzzzzzzzzzzz
TYS AK NOIP I think
my classmates AK NOIP I think
ZK AK NOIP I think
*/- Moni
#include<cstdio>
//love Moni!
int main()
{
freopen("assign.in","r",stdin);
freopen("assign.out","w",stdout);
for(;;)
puts("Moni");
return ~~(0-0);
}- 长代码
#include <bits/stdc++.h>
using namespace std;
int main(){
freopen("query.in","r",stdin);
freopen("query.out","w",stdout);
int i;
cin>>i;
if(i==6){
cout<<3<<endl<<4<<endl<<3<<endl;
}
if(i==500){
printf("3\n1\n47\n1\n3\n1\n1\n3\n44\n1\n1\n3\n3\n1\n1\n44\n1\n3\n35\n8\n3\n3\n6\n3\n3\n4\n30\n3\n3\n1\n1\n1\n1\n3\n1\n12\n1\n3\n3\n3\n1\n5\n1\n3\n8\n3\n30\n3\n3\n3\n3\n ... 1\n3\n3\n8\n1\n1\n1\n1\n341\n13\n119\n3\n3\n1\n1\n1\n4\n3\n1\n3\n3\n1\n23\n4\n1\n1\n1\n3\n1\n23\n3\n3\n1\n")
;
}
...- 达芬奇(该代码长 11KB)
//CCF!迎接我半径500行的达芬代码吧!!!- what can i say
#define debug cout<<"What can i say"<<endl//11:56 0~28pts expect 16pts
//I can not solve it
//what can I say,GD-1158 out! if(m == 1) dfs(st), printf("%lld\n", f[st]);
else if(typ == 18) puts("1");
else if(19 <= typ && typ <= 21) jvhua();
else puts("What can i say?");- QYY
// cerr << "QYY\n" << t << '\n';struct node{
int c,d;
bool operator <(const node &qyy)const{return c<qyy.c;}
bool operator ==(const node &qyy)const{return (c==qyy.c&&d==qyy.d);}
}lm[maxm];- 神奇变量名
int lcy1[M],noip[M],coby1[M],kunkuakcsp[M],ptr1,akcsp[M][2],hsfz[M],manoip[M];
int lcy2[M],csmo[M],coby2[M],kunkuakimo[M],ptr2,akimo[M][2],szzx[M],macsmo[M];#include <bits/stdc++.h>
using namespace std;
const int mod=1e9+7;
int noip[300005],cmo[300005];
struct numb{
int zhouji,yuzu;
bool operator<(const numb f)const{
if(zhouji==f.zhouji)return yuzu<f.yuzu;
return zhouji<f.zhouji;
}
}nmsl[300005];
long long akioi(long long fw,long long nailong){
long long pku=1;
if(!nailong) return 1;
pku=akioi(fw,nailong>>1);
pku*=pku;pku%=mod;
if(nailong&1)pku*=fw;pku%=mod;
return pku;
}
long long aknoip(long long ddd,long long thu){
long long tmp=akioi(thu,2*ddd)-(thu-1)*akioi(thu,ddd-1);
return ((tmp%mod)+mod)%mod;
}
int main(){
freopen("assign.in","r",stdin);
freopen("assign.out","w",stdout);
int T;cin>>T;
while(T--){
int akcmo,thu,mlgb,ptr=0;cin>>akcmo>>mlgb>>thu;
for(int i=0;i<mlgb;i++){
int u1,u2;cin>>noip[i]>>u2;
nmsl[i].zhouji=noip[i];nmsl[i].yuzu=u2;
}
bool bpos=true;
sort(nmsl,nmsl+mlgb);sort(noip,noip+mlgb);
for(int i=0;i<mlgb;i++)if(nmsl[i].zhouji==nmsl[i+1].zhouji&&nmsl[i].yuzu!=nmsl[i+1].yuzu)bpos=false;
if(!bpos){cout<<"0" <<endl;continue;}
for(int i=0;i<mlgb;i++){
if(i==0||noip[i]!=noip[i-1])cmo[ptr++]=noip[i];
}
long long lcy=1;
lcy*=akioi(thu,(cmo[0]-1)*2);
lcy*=akioi(thu,(akcmo-cmo[ptr-1])*2);
lcy%=mod;
for(int i=1;i<ptr;i++){
lcy*=aknoip(cmo[i]-cmo[i-1],thu);
lcy%=mod;
}
cout<<lcy<<endl;
for(int i=0;i<mlgb+10005;i++)nmsl[i].zhouji=nmsl[i].yuzu=cmo[i]=noip[i]=0;
}
return 0;
}- aknoip
struct iaknoip{
long long x=0,y=0;
}l[N];
bool sortcmp(iaknoip xx,iaknoip yy){
return xx.x<yy.x;
}注释
- 暴戾语言
// for(int i = 1;i <= n;i++)
// if(sum[0][clr[0][i]] + sum2[0][clr[0][i]] != 0) cout << "FUCK!!!" << endl; //cout<<"fuck"<<endl;#include<bits/stdc++.h>
using namespace std;
signed main(){
freopen("query.in","r",stdin);
freopen("query.out","w",stdout);
cout<<114<<endl<<514<<endl<<1919<<endl<<810<<endl;
return 0;
}
/*LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻LCA之耻
写到最后才发现这里有一道能骗分的LCA
I FUCK YOU!
没救了
鉴定为玩原神玩的...
眼睛被吃了
*/// if(tl!=R) cout<<"SB";- luogu
#include<bits/stdc++.h>
using namespace std;
signed main(){
// FurinaHateComma luogu 763542
// write at lst 3 min
// in order to remember cjk
// id = Citilaly_qwq
// he AFOed
}- furina(同学,四道题)
// I love Furina forever- 一雪前耻+随机说话(没错是我)
/*
1
10
0110111100
1111111100
1110000100
0110111011
去年noip考了129分,今年我要一雪前耻!
希望这次T1不要挂QAQ
*//*
1
3 3 2
1 1
2 2
3 1
1
10 11 2
10 2
7 2
7 2
2 2
3 2
4 2
10 2
7 2
10 2
3 2
3 2
俗话说的好,大难不死,必有大难
*/- 游记人
/*
9:52:43 开题。
我真的纯乃龙。虽然思考了半天 D 暴力,但是 C 的 40 分暴力我怎么写了快 2h
我就是奶龙,我就是奶龙,这下真的只能退役了
我宣布,luogu uid 61158 就是奶龙!!!!!!!!!!!!!!!
啊考前一天立下 flag 如果纸盒和 tder 考的比比我高要请他们吃外卖来着
啊啊啊我的钱包……
写 D 暴力了
最后一次 noip 只能以 100 + 100 + 40 + 32 收尾了吗
好不甘心,好难受,心态有点崩溃。
不管,最后一小时写完 D 暴力就行。
这么顺利的前两个提被 C 暴力毁了。
//freoepn 上述是奶龙内容
12:53:49 结束了,最后一次 noip。
之后不确定能不能去 WC。APIO 肯定会去打。
不过我是高二老灯了,这也没办法了吧。
包拿不到两倍对线内的。复课文化课了。之后可能晚上去机房或者只有周末再学学了。省选会去考,不过希望不大。
subetewo owari.
AzusidNya. 2024/11/30
12:26
我回来了。因为 D 32 分暴力 20 分钟写完了。
再看看还有没有能打的部分分。
现在能做的有什么?
k = 1,链,菊花。
共有 40 分。
所以我想要什么?
k = 2。看看能不能转化上把。
最后还有 15 分钟的时候跑虚拟机。
应该是,在一些情况的时候答案和 k = 1 一样
否则不同。
这里的一些情况是什么啊
我找不到条件了。以我的实力应该不足以在 20 分钟内再拿下这题多少分了。
现在要干什么?看看 D 把。
*//*
10:56 maybe can pian 25 pts, see next timu first
11:01 try baoli
11:26 done,25 pts get,now 125,try T4
*/
/*
i still continue to study OI because of MST(luogu 815497) encouraged me last year when i got low pts
but this year she can't come to NOIP
so MST, if you see this in daimamihuoxingwei, it's my courage to you, you can still go on
*/- 洛谷
//Author:Dream_Flynn(luogu uid=578398)luogu_uid:373844// luogu uid : 752017 name : buowen123 //big yang li ban tian pao bu guo qu
//ran hou fa xian
//mei you qing kong
//duo ce bu qing kong,bao ling liang hang lei
//CCF I love you kkksc03 I love you
//NOIP2024 rp++
//my luogu id:745358//might afo sometimes later
//wish to happy in the after days
//NOIP T2 放容斥 dp?
//炸了啊。准备退役了。
//T1 没调出来。T2 没写完。
//T1 最后 15min 调出来了。但是 T2 真的寄了。
//也许真的是能力问题吧。
//Luogu uid 514700。
//再见。- 随机化我爱你+dzd
suijihua wo ai ni
...(重复23遍)
...
me:dzd is love!
you:dzd is love!!
me:dzd is power!
you:dzd is power!!- aqua
//baixie aqua
//baixie aqua //tie tie aqua- 鸽批
// 你或许也意识到了这件事——
// 硬币掷出之后,正反的转互从未停止。
// 旅船是掩盖未来的虚像,战车正指引着我们的命运。
// 前方是毁灭亦是重生- AFO
/**
* 9:49了
* 高二老登AFO前的最后一次参赛
* T1不会做,哎,TLE
* https://xtexx.eu.org
* The Last Dance
* 12:51了
* Goodbye, AFOed
* 感谢两年来支持我的各位老师和同学
* Sat, 30 Nov 2024 12:53:52 +0800 @ 中山纪中
*/// 727558 AFO/*
1
3 2 2
1 2
3 2
1
5 2 2
2 2
4 2
3
2 1 2
1 1
2 2 2
1 1
2 2
2 2 2
1 1
1 2
now time is less than 30min
Happy AFO!
*/// this is the last code before AFO... maybe //Away from OI
// by McIron233- 膜拜
// The Bigger dalao in my school is Exp10re,let's mod him!!!!
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%- 斗地主
if(l==r){tr[x]={k,k,k,1};return;}//三K带单A,谁要? - debug 深入思考(都是同学,第二个与注释 12 同一人)
//NOIP2024 RP++
//不要挂分,不要挂分,不要挂分
//debug 深入思考,只靠样例与自己 //debug深入思考,只靠样例和自己 - RP++ 字符画
/*
RRRRR PPPPP + +
R R P P + +
RRRRR PPPPP +++++++ +++++++
R R P + +
R R P + +
*/- 常见错误
/*
//#include<stdio>
#include<bits\stdc++>
freopen("travres", 'r', tsdin);
freopen("travres", "w", stdin);
freopen("travres.out", 'r', stdout);
*/- 重复字符(此代码最后多打了一个
*/CE)
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH- 忘记 ST 表怎么写
// bro literally forgot how to sprase table-
rating 比 tourist 高
//10:00 pass xingzhiA
//10:15 find zuofa wrong
//10:19 many WAs
//10:26 find zuofa wrong again
//10:33 WA on #5
//10:36 pass big sample O(mlogn)*t=O(tmlogn) (logn from quickpow)
//sto cyq,the maths master,rating higher than tourist,will solve it easily (if he is still awake) orz- 为什么这么难(同学)
//为什么这么难啊?/kk- hello world
//cout << "Hello world!" << endl;- ikun
bool ikun = true;
for( rint i=2; i <= n; i++ ){
if( s1[i]!=s1[i-1] ){
ikun = false;
}
}
if( ikun ){
for( rint i=1; i <= n; i++ ){
if( s2[i] == s1[i] ){
ans ++;
}
}
printf("%d\n", ans );
}
else{
printf("%d\n", n );
}- sto
//sto faker wcy,will know how to do it and program it in less than 10min (if his brain work normally) orz//sto%%%kkksc03%%%orz- 各种祝福
// Lucky_Luo NOIP2024 rp+=inf;//first time noip,last time noip,good luck; - 蔬菜越来越多我该怎么办
/*
60 + 100 + 16 + 0 = 176
More and more vegetables what should I do???
rp++ sms
glhf gd oiers
*/- Misty Memory
// Code by Heratino & Nelofus
// No I still can't seem to
// Sing more than blues when It's time for my verse
// It's true that I need you
// To turn my blues into bursting fireworks- kill
/*
kill[1e7]
kill[1e8]
kill[1e6]
kill[1e5]
*/- 谢谢
/*
现在是 10:24,停下来稍微写点东西。
大概赢了。当 T2 70 分暴力跑过大样例时,狂喜席卷我全身。
现在估分 200,只要 T1 不挂,后面随便写点暴力,女生全国前十大概拿下了吧。
这场怎么那么难啊。不会是绿紫紫紫吧。KDOI 模拟的还真好 /hsh
Qingyu 的博客中曾说,要珍惜自己通过刻苦训练获得的赛场上的时间。但当我真的做到了,还是忍不住要停下来感谢一下帮助过我的人。
谢谢 xht 哥哥,给了我鼓励和训练的方向,让我感受到了被支持。
谢谢 -95 老师,我本以为退役前要一个人走下去了。
谢谢同学们,学弟们,教练们。和你们讨论总是愉快的。
祝你们好运。
272。会赢吗。
*/- 碎碎念
//traverse
//12:21 不会写。听说这次1=名额减少了,也许这次就只能拿到3=了。
//不知道机房的大家考得怎么样,有些忐忑,希望大家不要像我一样(笑)
//我这个人的脑子比较腐朽,我指的是没有那么"新鲜",我也羡慕那些只是略微接触一点就能感觉到对方的聪慧的人。简而言之是我太蠢了。这一点是事实,我承认。我经常性地因为自己没有那么聪明而感到挫败,有时也会感到一点奇怪的喜悦感。
//其实我文化课成绩还不错?在某种程度上来说,至少我希望我的文化课成绩能被别人说还不错。但是无论对于竞赛还是对于文化课 ,考得多好才算好呢?年级第一?我们在用成绩和分数为人赋予偏见的价值, 这是不是正确的呢,是不是在一个注定无法实现绝对公平的世界里对公平做出些许努力呢?还是留给那些聪明的人去回答吧,我太蠢了。
//我虚伪地希望大家都好,无论是竞赛还是文化课。总有人会解出这些我没有解出的问题,总有人能拿到一等,也总有人能在这条竞赛的道路上走的比我更远,我虚伪又由衷地希望大家都好。对于我来说我唯一的选择就只有去文化课了吧,好在这对我而言也并不是什么痛苦的事情,还有人比我更痛苦,听说NOI每年会给银首鼓掌,也许这是好的,但只要一件事物存在排名和分界,这件事物总是残酷的。但自然也是残酷的。或许这一切都是人类社会对自然选择的一种诠释吧。至于选择的结果的好坏,我虚伪又由衷地希望一切都好。
//我想读书。读好多好多好多书。事实上我想读完世界上所有的书,当然这是不可能的,我只是害怕愚蠢。然而愚蠢与否并不是知识量可以决定的,这更多地与智商相关,所以归根结底,我只是想让别人不要以为我"愚蠢",这是一个完全出于无聊的自尊心的想法。不过,我也并不是那么在意自尊心,更多时候影响我的是别人的看法,别人的看法、经历、见解以及批评和评价对我而言是那么无所谓又那么醒目。所以也许我只是在怀疑我是什么人,我是自己,还是活在别人眼中的什么人?如果我并不是活在别人眼中,又有什么参照物去证明我的存在?笛卡尔说"我思故我在",我并不是很信服他之所言,但我们应该相信什么呢?我们的经验?理性?上帝?本体?还是更高更虚无的飘渺宇宙呢?那我们应该怀疑些什么?认识?不可知的事物?还是一切呢?好像说的有些多了,希望这段话不要给任何人看见。这只是一个脱产者的碎碎念,我相信很多事物在我们进入社会生产体系后才会有一个更清晰的认知,和一个更麻木的灵魂。
//快结束了,这一切。
//AFOing! in 2024.11.30