CSP2025 广东迷惑行为大赏
代码链接放这里。
本次考试 CSPJ 共 4075 位考生,其中 4047 位提交了共 15600 份代码。CSPS 共 3729 位考生,其中 3713 位提交了共 13407 份代码。
如果你发现了其他人的迷惑行为但未收录,或者你的代码上了电视但不想上,请私信。
感谢 ouxiyao、__Sparkle__、buowen123、cuijiexiong、Gavinzhou、PopAgoni、zbl2012、mohay、__graphite__、_qwertytrtyuaaa_、Kaedehara__Kazuha 等人的投稿。
创作不易,点个赞吧 qwq。
- 禁三警告
#include <bits/stdc++.h>
using namespace std;
#define explode return
#define fuck 1
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
while(1){
cnt++;
if(cnt=1145414154) break;
}
while(1){
cnt++;
if(cnt=1145414154) break;
}
while(1){
cnt++;
if(cnt=1145414154) break;
}
//省略一大堆
}
这位选手 polygon seat xor 三题末尾都注释了 fuck you,CCF
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
int n;
cin>>n;
int a[n];
int sum=0;
for(int i=0;i<n;i++){
cin>>a[i];
sum+=a[i];
}
sort(a,a+n);
if(n==3 and sum>2*a[n-1]){
cout<<1;
}
if(n<=3 and sum<2*a[n-1]){
cout<<0;
}
if(n==4){
cout<<3;
}
if(n==5){
cout<<6;
}
if(n==6){
cout<<10;
}
if(n==7){
cout<<15;
}
if(n==8){
cout<<21;
}
if(n==9){
cout<<28;
}
if(n==10){
cout<<36;
}
return 0;
}//fuck you,CCF
#include<bits/stdc++.h>
using namespace std;
string s;
int i,a[1145140];
void fuck(){
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
return;
}
int main(){
fuck();
cin>>s;
for(i=0;i<s.size();i++){
if(s[i]>='0'&&s[i]<='9')a[s[i]-'0']++;
}
for(i=9;i>=0;i--){
while(a[i]--)cout<<i;
}
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int n,m,val;
int a[110];
int col,row;
int main()
{
freopen("seat.in","r",stdin);
freopen("seat.out","w",stdout);
cin>>n>>m;
for(int i=1;i<=n*m;i++)
{
cin>>a[i];
if(i==1)val=a[i];
}
sort(a+1,a+n*m+1);
for(int i=1;i<=n*m;i++)
{
if(a[i]==val)
{
int cnt=n*m-i+1;
int piv=cnt%m;
//cout<<i<<' '<<cnt<<endl;
if(piv==0)
{
//cout<<"fuck ccf\n";
col=cnt/m;
if(col%2==0)row=1;
else row=n;
break;
}
else col=cnt/m+1;
if(col%2==0)row=n-piv+1;
else row=piv;
break;
}
}
cout<<col<<" "<<row;
return 0;
}
bool tmp(clubnum fuck,clubnum CCF){
if(fuck.a!=CCF.a)return fuck.a>CCF.a;
else if(fuck.b!=CCF.b)return fuck.b>CCF.b;
else return fuck.c>CCF.c;
}
#include<bits/stdc++.h>
#define mn 5001
#define mod 998244353
using namespace std;
int n,a[mn],b[mn],m,i,step=3,ans,fuck;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cin>>n;
for(i=1;i<=n;i++){
cin>>a[i];
cout<<a[i]<<' ';
b[i]=a[i];
}
cout<<endl;
for(i=1;i<=n;i++){
a[i]+=a[i-1];
b[i]=max(b[i],b[i-1]);
}
for(i=1;i<=n;i++){
cout<<a[i]<<' ';
}
cout<<endl;
while(step<=n){
fuck=0;
for(i=step;i<=n;i++){
if(a[i]-a[fuck]>2*b[i]){
cout<<step<<' '<<a[i]-a[fuck]<<endl;
ans++;
}
fuck++;
}
step++;
}
cout<<ans%mod;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int a[500001];
int main()
{
freopen("xor.in","r",stdin);
freopen("xor.out","w",stdout);
int n,k;
cin >> n >> k;
for(int i=1;i<=n;i++) cin >> a[i];
string x="I don't know what is it.Can you help me?";
for(int i=1;i<=n;i++)
{
if(a[i]!=1 && n%2==0)
{
x="fuck.";
}
else if(a[i]!=1 && n%2!=0) x="what?What are you saying?";
}
cout << x;
fclose(stdin);
fclose(stdout);
return 0;
}
- 我要蓝钩
WARNING: All my comments after the code are in UTF-8 format. Do not use Dev-C++ to view.
大家好,我是去年的 GD-S03043,今年回来啦!
我要蓝钩!!!
题外话:关注 @Shellchen 谢谢喵!
---------------------------------------不怎么优雅的分割线---------------------------------------
100pts
- 各种各样的游记人
/*
就这样吧,天已经黑了,还没想出 T2。
前些天模拟赛打得也很烂,就这样失败了吗。
仍有人还在疯狂敲击键盘,也有像我左边这位 TMD 一直在发出噪音。
打出了 T1,没有红温,接受自己的平庸,接受自己的不幸,就算是没有 1=(其实应该有吧),也只是一次。
我现在才初三,有很多大事,AlBU(铝硼铀),中考,都是很重要的。
这只是一次 CSP-S,T1 放返回贪心的出题人的妈妈一定很多,T2 又是神秘 MST,昨天信心赛有两道也只做了一道。
现在只有:100+48+15+8=171,还不如去年 220。
曾经 S1= 的我去哪了,做的那么多道题又有什么用,每次看题解都只是试图掩盖自己的无知,tarjan、SAM、网络流至今不想学,只会随机化骗分的我也接连失利。
算了,并不是很糟,学过的返回贪心不也做出来了吗,只是自己太菜罢了,我的同学肯定都能进 WC,高年级的学长都可以 AK,只有我无助地跟 T1 大战,跟 T2 大战。
就这样吧,坦然面对,没有什么好挂分的,就是自己菜,无数次面对数学题指挥发呆,只会在听完讲题后来一句我怎么没想到,之所以我打挂是理所应当的。
欠了什么,什么就会找回来,为了跳过思考而看题解的我自然只会发呆,不刻苦练题的我只会对不上脑电波,对着题解代码调试的我只会跟调试大战。
哎,只能在这个最紧张最重要的时候审判自己了。
-- luogu uid: 818165.
*/
RP++!
freopen!!!(last year -100pts 270->170)
8:43 T1 AC
9:58 T2 AC(xiele henguiyide moni,tiaole 40min)
(chonggou le)
(guiyi)
10:25 T3 buhui.
11:13 T3 [30,60)pts goodbye.
11:21 T4 baoli.
11:48 T4 [12,100]pts goodbye.
11:54 T4 I'm back! 24pts goodbye.
goodbye 1=...TAT
T2 n,m<=10???
pw:#Shang4Shan3Ruo6Shui4
bieren kaishi kantile wo haizai shumima.
tai guiyi le.
kaochang tiele fangkuimo.
zhende shiyong jiaodai tie shang qu de.
hai bu shi tou ming jiao.
dangzhu yidui dongxi.
shenzhi fangkuimo mianji zhiyou pingmu de 4/5.
tai guiyi le.
pang bian you shenmi ru yizhi zaijushou.
diyici shi wen zenme da # .
dierci shi ba xiafangyangli dang cheng le
zijide wenjian.
disanci shi wen daimahou yaobuyao jia .cpp .
disici shi wen daima weishenme shurubuliao.
cong 8:30 ju daole 9:48
zui nanbeng:checker.exe zhale.
qing guanzhu luogu 845367 @__QWQ_qwq__ !
zhuwo chuzhong diyici CSP-J2&CSP-S2 1=!
(keyi yong pyl 0pts huan)
if (CSP-J == 3= || CSP-S == 3= ) I = AFO;
HNSF&GDF are so dangerous.
I'm a EZOIer!
*/
/* 对啊我可以直接用 /* 我是不是【你知道的】
luogu ID:lcpwp
2025.11.1 8:30-12:00
第一次打CSP-J awa
想上代码大赏qwq
9:28 做完了T1T2
T3看不懂awa
9:38 开T4,我要暴力啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
9:49 写完T4,开条
9:52 发现还【数据删除】要写 地哎付哎斯 我真服
10:06 忘记咋写 地哎付哎斯 了算了开摆
10:11 试了一下还是不行难道我要提前afo QAQ
10:15 加了个ios不知道干嘛
10:21 好像加不了ios,寄
10:24 还是去挣一下T3吧
10:34 写完T3,开条
10:47 啊啊啊大样例听我说谢谢你
10:49 已完成今日没做摆了大学习
是的我挣不动T3了
blessing for 200pt!
76+70+?+? QAQ
10:58 为什么VSCode和DEVC++的中文是不一样的编码?
不行了我要用VSC来写了
孩子们我要来搞魔怔了哈哈哈
11:07 不行了看电脑看的有点头疼
咕咕嘎嘎
我从南极来,最喜欢赤石。
灵感菇刮擦,咕咕又嘎嘎。
组了个乐队,全都不诗人。
想成为人类,神人把我黑。
噔噔噔 噔噔 噔噔 噔噔噔噔噔噔
11:24 不知道干嘛
11:31 已完成今日请选手每15分钟保存一次程序以防机器故障大学习
11:38 依旧不知道干嘛
11:40 如果关于这个异想体的认知滤网失效,我们就要考虑换一个新的主管了(好像是这么写的吧
11:45 已完成今日还有15分钟考试结束大学习
11:48 还是不知道干嘛
11:50 !紧张!
已完成今日不用删放那就行大学习
11:52 已完成今日还有5分钟大学习
!!!不知所措!!!
11:55 有1.4了
总结:
T1T2看得懂
T3挣一下
T4调不动摆了
好的基本废了
*/
/*
guess:
ru guo bu chu yi wai de hua:
A 100
B 100
C 65
D 100
all:365
yi deng ying gai shi bu chou de
11:16
mei shi le,gang gang kan le yi xia,xiang rang dai ma da xiao chao guo xian zhi hai shi ting nan de,suo yi ying gai ke yi sui bian xie.
(que xin)
lai xie pian you ji ba:
-1d:fang xue hou jiu zai jia wan san jiao zhou.9:00 zuo you cai chu fa.Yin wei kao dian bi jiao yuan,suo yi jia li da suan dao fu jin de yi ge jiu
dian qu zhu.Bu guo kai fang shi fa xian zhe dong lou li you bu shao ren ye shi lai da bi sai de(zhi shao mei na me gu dan le bu shi ma).
-9h:shi mian le,hen wan cai shui zhao.
-1h:chu fa qu kao dian
-0.5h:dao kao dian le.ye mei xiang dao gang hao neng pen shang chu zhong tong xue.
0h:kai shi kao shi,hua shuo jie ya password zeng me na me chang.
hou mian wang le.
bu xie le
11:28��
gang gang you qu jian cha le yi xia,B de tiao shi dai ma cha dian wang shan le.
*/
#include <bits/stdc++.h>
using namespace std;
using i32 = int32_t;
// --------------------------------------------------------------------------------------------
string s;
i32 cnt[200];
int main() {
freopen("number.in", "r", stdin);
freopen("number.out", "w", stdout);
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
cin >> s;
for (char c : s)
if ('0' <= c && c <= '9')
++cnt[c];
for (char c = '9'; c >= '0'; --c)
for (i32 i = 1; i <= cnt[c]; ++i)
cout << c;
cout << endl;
fflush(stdout);
return 0;
}
/*
For international readers: goto line 53.
关注 bsdsdb 喵。关注 bsdsdb 谢谢喵。
考场怎么在五楼。已完成一年运动量。
怎么用了快一个半小时才做完。我好菜。咋两道dp。我感觉是红红黄绿,ABC的ABDD题?
座位的鼠标还没开考就坏了。cff太有实力了。
这个arbiter怎么这么难用。点几下就崩溃。不如lemonlime。
linux还挺流畅的。sublime好用。
polygon这个词怎么这么难打。seat四个字母一只手就打完了。
checker怎么不检验选手目录了。
没啥要说的了。
发现输入字符串中的字母对输出没有影响,可以去掉。现在问题转化成给一列数字,问怎么重排能得到最大数。
显然是把数码大的往前排。因为排序的值只有 O(1) 种,所以可以桶排做到 O(|s|)。
Click the star on codeforces.com/profile/FeiWuLiuZiao thanks nya.
Why the place was set on the 5th floor. I just done my whole year exercise.
Why those problems cost me nearly 90min. Maybe because I have no brain. Why 2 dp tasks. Seems to be task ABDD of ABC.
My mouse was broken before the contest starts. mol cff.
Arbiter was so difficult to use. It crashes on several clicks. Worse than lemonlime.
Linux was more fluence than I thought. Sublime good.
The word 'polygon' was hard to type. 'seat' was typeable by a single hand.
Why checker doesn't check the contestants' directory now.
Nothing to say.
Alphabets are useless for the answer, we can delete it. The problem now changed to: 'What is the maximum number you can get by rearranging the given digits'.
Obviously we put the bigger digits in the front. There's only O(1) values needed to be sort, so use bucket. O(|s|).
*/
- 暗广
//I want to see myself at luogu
// my luogu id:993044
// my luogu name:Like_Amao
//91
//78
//13
//169
//100 + 100 + 25 + 40 = 265 pts
- florr
/*
https://florr.io
lvl 107
carry me!
florr.io name:Crimson_Sky
//freopen("number.in","r",stdin)
//freopen("number.out","w",stdout);
luogu:862989 Crimson_Sky
*/
- 原批
#include <bits/stdc++.h>
#define I_love_Furina return
#define int long long
using namespace std;
void fufu(int f){
if(f < 0){ putchar('-'); f = -f; }
if(f < 10) putchar(f + '0');
else{ fufu(f / 10); putchar(f % 10 + '0'); }
}
string a;
int b[15];
bool f, f2;
signed main(){
freopen("number.in", "r", stdin);
freopen("number.out", "w", stdout);
cin >> a;
for(int i = 0; i < a.size(); i++)
if(a[i] >= '0' && a[i] <= '9') b[a[i] - '0']++;
for(int i = 9; i >= 0; i--){
if(!i && !f2){ fufu(0); I_love_Furina 0; }
for(int j = 0; j < b[i]; j++){
fufu(i); f = 1;
if(i > 0) f2 = 1;
}
}
if(!f) fufu(0);
I_love_Furina 0;
}
/*
Now is 18:19,there is just 6 minutes left
But I found my thought was wrong
Oh ****!
This way,maybe I won't win the first prize
All right,I know I am weak in OI
Although I am a 8th grader,but this is the first time I join in CSP-S
I can just get 96 points
I am too vegetable(sad
****!
I love Kaedehara Kazuha and Furina and Zhongli and Arlechino!
Kaedehara__Kazuha is my luogu name
*/
//luogu uid:723036
// Genshin Genshin Genshin
// Impact Impact Impact
// just left 1hour,ping mu qian de xiao peng you men,ni jue de wo neng xie wan T2 ma?
// 18:22 : yv gu 100 + 24 + 25 + 28 = 174 pts. AFO.
#include<bits/stdc++.h>
using namespace std;
int n,m,a[100005][3],b[100005],t[3],p[100005],s,ans;
void chk(int&x,int*a){
for(int i=0;i<3;i++) if(a[i]>a[x]) x=i;
}
void Genshin_Impact(){
cin>>n,ans=m=0;
for(int i=1;i<=n;i++) for(int j=0;j<3;j++) scanf("%d",&a[i][j]);
t[0]=t[1]=t[2]=0;
for(int i=1;i<=n;i++) chk(p[i],a[i]),t[p[i]]++,ans+=a[i][p[i]];
chk(s,t);
for(int i=1;i<=n;i++) if(p[i]==s) b[++m]=a[i][p[i]]-max(a[i][(p[i]+1)%3],a[i][(p[i]+2)%3]);
sort(b+1,b+m+1);
for(int i=1;i<=t[s]-n/2;i++) ans-=b[i];
cout<<ans<<"\n";
}
int main(){
freopen("club.in","r",stdin);
freopen("club.out","w",stdout);
// freopen("club.in","w",stdout);
// froepen("club.out","r",stdout);
// freopen("club1.in","w",stdin);
// freopen("club1.out","r",stdin);
int T;
cin>>T;
while(T--) Genshin_Impact();
}
- random_shuffle(freopen)
/*
//freopen
//feroprn
//froenrn
//frepone
//freponr
//Genshin,Furina
//nmuber.in
*/
- kill
#include<bits/stdc++.h>
using namespace std;
long long N = 998244353;
long long n;
long long a[6000];
long long List[6000];
bool flag;
long long kill;
...
- 杀极域+9c99 1e11+受着(这个是我,分别是 T4 T3 T1)
/*
10 10
1111111111
6 1 4 2 1 2 5 4 3 3
while(1) system("taskkill /f /im studentmain.exe");
*/
for(int i=1;i<=n;i++) {
vl[0][i]=mp[{hs[0][i],ht[0][i]}],vt[vl[0][i]].pb({i,0});
// printf("9c99 %d\n",vl[0][i]);
}
for(int i=1;i<=m;i++) {
vl[1][i]=mp[{hs[1][i],ht[1][i]}],vt[vl[1][i]].pb({i,1});
// printf("1e11 %d\n",vl[1][i]);
}
/*
T1不会怎么办?
请看VCR
受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着 受着
*/
- 诈骗犯
/*
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
洛谷 UID: 678175
关注 @jqQt0220 谢谢喵
笑点解析:2h 才切 T1
*/
- 乱搞
/*
ERIN!ERIN!TASUKETE!
KIOMOHIKEIRU!
(背错歌词了的话请不要打我QAQ)
ArisakaMashiro可爱滴捏喵,同时也是我的洛谷账户名谢谢喵,关注ArisakaMashiro谢谢喵,否则Mashiro酱就要用 Flying Circus 中使用的反重力鞋狠狠地踢你的铍鼓了喵。
但是自己是不能关注自己的,所以让我先来(大雾)。
===============================分隔符==================================
k <= 10,这是个很强的约束。
能不能考虑枚举?这是个问题。
并不能,2^10=1e3,跑不了kruskal力。
或许可以考虑优化这一过程。
但还没有想法。 15:36
我们考虑kruskal的本质,贪心。
设dp_{i, j} 表示在选择的目标点状态为 $i$ 的情况下(此处显然使用状压即可),考虑编号在前 $j$ 个点时的最小花费。
感觉是可以转移的。
这一部分的时间复杂度O(2^k * n)。
问题在于形成森林后的几个并查集之间如何求解最小值。暴力扫边集的时间复杂度不能保证正确。 15:45
上面的不对,这个dp有后效性。15:51
1.048s,大样例3。
中山纪中你最好给我用的是烂电脑(威胁)。
吸了氧之后变成0.627s了!赢!
希望最后 9 个测试点也能保持如上成绩(祈祷nia)。
TASUKETE_ERINNNNNNNNNN!!!!!!!!!!!!!!!
这份代码的时间复杂度......多少有点乱搞成分在。
O(2^k * (m + k * n) log (k * n)),能过的话多少带点玄学成分。
主要是 m + k * n 那项很难真正跑满,相信数据! 16:44
*/
- 细细爱抚我爱你
//ccf i love you
/*
CCCC CCCC FFFF I L OOO V V EEEE U U
C C F I L O O V V E U U
C C FFFF I L O O V V EEEE U U
C C F I l O O V V E U U
CCCC CCCC F I LLLL OOO V EEEE UUU
*/
//wo yao shang csp mihuo xingwei daquan qwq
- 求一等
//Please CSP-S2025 1= QwQ!!!
- 倒序开题
/*
100pts
预估绿
9:06 AK!
发压缩包密码后先开了这题
正解一眼看出来了qwq
9:22 Linux 下测完样例,没问题
9:28 将注释修改格式为 UTF-8,测了下 Linux 下可以过编
*/
- 大量的 qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
//qwq qwq qwq
- 待会来写(这份代码只有这一行)
//AC自动机?不会,待会再来写QWQ
- //freopen
#include<bits/stdc++.h>
using namespace std;
int cmp(int a,int b)
{
return a<b;
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
//freopen("polygon.in","r",stdin);
//freopen("polygon.out","w",stdout);
int n;cin >> n;int num[n];
for(int i = 0;i<n;i++)
{
cin >> num[i];
}
sort(num,num+n,cmp);
for(int long_num = 3;long_num<=n;long_num++)
{
}
}
- 迷惑行为大赏,但是 chinglish
注:这个代码后面粘了无数个 //freopen,一共 1186761 字符。
DO YOU GUYS THINK I CAN GET PEOPLE DOING UNUNDERSTANDABLE MOVEMENTS CONTEST(mi huo xing wei da shang,wo de ying yu bu hao) HERE?
- nuber ans mian
//freopen("nuber.in feropen( int mian() froepen( number.ans
- freeopen froepen 1 2 ans
/*
����
freeopen("number1.in", "r", stdin);
froepen("number1.out", "w", stdout);
freeopen("number2.in", "r", stdin);
froepen("number2.ans", "w", stdout);
freeopen("number.in", "w", stdin);
froepen("number.out", "r", stdout);
luogu:1246673
*/
- 我能拿一等吗?
#include <iostream>
#include <cstdio>
using namespace std;
// pipilong2024,我喜欢你!
// 屏幕前的观众朋友们你们觉得我能拿一等吗
// 前面忘了,我该在哪里停留?我问我自己。
// froepen("road.in", "r", stdin);
// freopen("road.in", "w", stdout);
// freopen("road.in", "r", stdin);
// love pipilong2024
// 估分,80+80+50=230,应该可以
void solve(){
}
int main(){
freopen("employ.in", "r", stdin);
freopen("employ.out", "w", stdout);
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
int T = 1;
while(T--) solve();
cout.flush();
return 0;
}
- rp+++++
#include <iostream>
#include <random>
#include <ctime>
using namespace std;
int main(){
freopen("employ.in","r",stdin);
freopen("employ.out","w",stdin);
srand(time(0));
cout << rand() << endl;
}
/***
RP+++++++++++++++++++++++++++
2026forever
0235forever
0817forever
2427forever
**/
- 提前交卷人
/*
今年j组好简单,虽然我去年就AK了,哈哈哈
不知到会不会选到GD抽象代码中,不过既然如此,我就要开始钓鱼了,桀桀桀
//freopen("polygon.out ","r",stdout);
//freopen(" polygon.in",'w',stdin);
真服了,10点才能交卷,但我9:05就AK了啊啊啊啊啊,明年我不要考J
今年难度评估红 红 黄 黄
为什么去年那么难啊啊啊啊啊
不过我AK了哈哈哈哈哈
希望下午S组能350加油!!!!!!!!!!!!!
rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++
rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++
rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++
rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++
rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++
rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++
rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++
rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++ rp++
我还以为T4跟去年一样是高质量蓝题呢wuwuwu
我常常追忆过去,后面不会了emm...
今年j题面好评!!!!!!!!!!!!!!!!!!!!!!!
今年j题面我的评价:简洁明了,通俗易懂!!!!!!!!!!!
wuwuwu从9:00熬到10:00告诉我不能离场这不搞心态吗啊啊啊啊啊啊
我要出去看b站,玩游戏呜呜呜
算了,既来之着安之,我只能写扫雷玩了呀桀桀桀
写到一半不想玩了,剩下的时间干啥啊!!!!!!!!!!!!
今年j题面为什么这么容易读懂呜呜呜,不应该复杂一点让我用更多时间吗
瑶瑶党万岁!!!!!!!!!!!!!!!!!!!!!!!!(其实六大女主都爱看,别问为什么是六大,但我也希望路人能强势一些qwq
大家好,我是桌桌子emm...
额,我不知道写啥了
我决定了,我要给T4写题解,让我的rp++
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
突然发现我不会用Mackdown(我又没有写错名字啊
我写了这么久一定要把我加进去啊!!!!!!!!!!!!!!
算了看我T3代码吧,我不想在T4写了qwq__
*/
- i'll showlove for you
#include<bits/stdc++.h>//iloveu ljn&Six_flower,pls giveme mwreluck for RP++!!!
#define int long long//if i get both J&S 1st,i'll showlove foru
using namespace std;//actructly i hope so,willu agree me?i'm not sure
int a[1000010],id;//in yourlife,i'm just a simpel friend
- 化学大佬
#include<bits/stdc++.h>
using namespace std;
int T,n,a[5][100005],maxn=-1,maxi,sum,ans,s[5];
int flag1=0;
vector<int>b[5];
void dfs(int cur,int cnt,int tarb,int need) {
if(cnt==need) {
// for(int i=1;i<=3;i++) {
// for(int j=0;j<b[i].size();j++) {
// sum+=b[i][j];
// }
// }
// }
sum=s[1]+s[2]+s[3];
// cout<<s[1]<<" "<<s[2]<<" "<<s[3]<<"\n";
ans=max(ans,sum);
return;
}
// else if(cur>n) return;
for(int j=cur+1;j<=n;j++) {
maxn=-1;
for(int i=1;i<=3;i++) {
if(a[i][j]>maxn&&i!=tarb) {
maxn=a[i][j];
maxi=i;
}
}
s[tarb]-=a[tarb][j];
s[maxi]+=a[maxi][j];
b[tarb][j]=0;
dfs(j,cnt+1,tarb,need);
s[tarb]+=a[tarb][j];
s[maxi]-=a[maxi][j];
b[tarb].push_back(j);
dfs(j,cnt,tarb,need);
}
}
int main() {
freopen("club.in","r",stdin);
freopen("club.out","w",stdout);
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
cin>>T;
while(T--) {
cin>>n;
//氟
ans=-1;sum=0;flag1=0;
b[1].clear();
b[2].clear();
b[3].clear();
s[1]=s[2]=s[3]=0;
for(int j=1;j<=n;j++) {
maxn=-1;
//铀
for(int i=1;i<=3;i++) {
cin>>a[i][j];
if(a[i][j]>maxn) {
maxn=a[i][j];
maxi=i;
}
}
b[maxi].push_back(j);
s[maxi]+=a[maxi][j];
}
//碳
for(int i=1;i<=3;i++) {
if(b[i].size()>(n/2)) {
flag1=i;
break;
}
}
if(flag1==0) {
for(int j=1;j<=n;j++) {
sum+=max(a[1][j],max(a[2][j],a[3][j]));
}
cout<<sum<<"\n";
}
else {
//钾
dfs(1,1,flag1,n);
dfs(1,0,flag1,n);
cout<<ans<<"\n";
}
}
return 0;
}
//password:人5杰4地4灵5%
/*
What a awful T is it,to waste me 1.5h!
Can anyone tell me,b vector铥的有用吗?
我决定死磕这一题了!
好吧,我失败了Shift+6
--------
/ \
| () () |
| || || |
| ^ |
\ /
-------
OI!See You Again!
服了,这OI学了跟学了一样
keywords:
feropen
club.cpp
road.cpp
replace.cpp
employ.cpp
clud
clab
raod
repalce
repacle
empty
emplay
enploy
"r",stdout
"w",stdin
ccf
luogu
kkksc03
Ren5Jie4Di4Ling5%
AK
IOI
CSP
CSP-S
CSP-J
NOIp
NOI
APIO
ICPC
WC
freopen("D:\GD-S03177\club\club.in","r",stdin);
freopen("D:\GD-S03177\club\club.out","w",stdout);
Can anyone find my 4 chemical secrets in the 4 .cpp?
*/
/*
放弃了
预估总分30(OvO)
我爱化学
2KMnO4====(Δ)K2MnO4+MnO2+O2(上箭头)
084 Company Start!
地方吧你乖乖的你还不门口如果周末看我让就你那【 哦阿门交给经贸委如果你们品爱拼太热【品哇【-NWEMR[NM
I must be the reason why you have to given up your smiles and the hopes inside your eyes have been stolen~
就这样吧,反正以后我学化竞去了(OvO)
woaihuaxue
Here we go another lap~Prize to claim~Here's the dream for you~Here's the dream for me~
Reverse 1999 Start!
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
为什么不枚举?因为全排列函数忘了
YuanShen Start!
出题人就是CaCO3
\0\0\0\0\0\0\0\0\0\0\0\0\0/0/0/0/0/0/0/0/0/0/0/0/0
Three Kingdom's Kill Start!
众将皆言君恩,今当献身以报!
简单的配平:__HCl+__KMnO4+____====Cl2+_________________
宝贵的可能被井喷事故鼻孔二【水平高i女【为i恩铭丰功伟绩美容科,麻烦79房vpszwhugyiuoysm;kmnaw3ziprkmnf1HBZ发你沃尔是法
J组大概能有200+(过T1T2,骗T3T4),S组全骗,有分不错了
rp++
祝同学AK IOI,AK IChO(好像是这个名字)
18:27
结束了
*/
- 牢大
#include<bits/stdc++.h>
using namespace std;
int main(){
//freopen("replace.in","r",stdin);
//freopen("replace.out","w",stdout);
//It's been a long day without you my friend!
//And I'll tell you all about it when I see you again
}
#include <bits/stdc++.h>
using namespace std;
int a[1000005], c[1000005];
int main(){
freopen("employ.in", "r", stdin);
freopen("employ.out", "w", stdout);
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n, m;
cin >> n >> m;
for(int i = 1; i <= n; i++){
cin >> a[i];
}
for(int i = 1; i <= n; i++){
cin >> c[i];
}
cout << "Man! What can I say?\nT4 out!";
return 0;
}
- 退役感言
//bu zheng le zheng bu dong le
//ren sheng lu man man
//gan jue da wan zhe ci jiu yao tui yi le
//mei jiu le
//xue le zhe me jiu
//xian zai lian pu ji zu dou bu neng AK
//wo hai shi tai fei wu le
//you mei you ren dong wo a
//ci ke wo hao jue wang
//hai you 5 min
//zai jian le OI
//xi wang ni xi huan zhe 6 nian lai shu yu ni de xi fen
//hope see you again
//......
- 《solve AGC 3000》《rating 4091》《easy for him to get to THU.》
/*
9:07
pass all examples
I will sit here for 3h.
Maybe I will AFO in the afternoon.
I think my classmates will win,but I find out that I as vegetable as one year ago.
wsy can solve AGC *3000 problems,he can study for more than 12h in one day and dont play games at all.
cyq's rating is *4091,higher than tourist and jiangly,her also have 10^1000 dollars.
and xza is very good in whk,it's easy for him to get to THU.
Can I go to PKUWC or NOIWC?It sounds impossible.
It very unfair that many people is rich or smart.
But what can I say?I can just shouzhe.
*/
- /bangbangt
#include<bits/stdc++.h>
using namespace std;
int a[1000001];
int main(){
freopen("candy.in","r",stdin);
freopen("candy.out","w",stdout);
string s;
cin >> s;
int sum = 0;
for(int i = 0; i < s.size(); i ++){
if(s[i] <= '9'&&s[i] >= '0'){
a[sum++] = s[i]-'0';
}
}
sort(a,a+sum);
for(int i = sum-1; i >= 0 ; i --){
cout << a[i];
}
return 0;
}
- emplay
#include<bits/stdc++.h>
#include<bits/stdc++.h>
#include<bits/stdc++.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{
// //freopen("emplay.in","r",stdin);
freopen("employ.in","r",stdin);
// //freopen("employ.out","r",stdin);
freopen("employ.out","w",stdout);
//return 0;
//return 0;
//return 0;
//return 0;
//return 0;
cout<<2204128;
fclose(stdin);
fclose(stdout);
return 0;
}
/*
14:32 看不懂,都看不懂
14:45 把格式打完了,才开始做题
15:32 放弃
15:33 坔爾綛鴚災club爕燊庅疒
15:56 我还能争!!! (上一条不是乱码)
16:27 放弃
16:42 我还能争!!!
15:23 呜呜呜
*/
- 【】
// n1e4, m1e6, mlogn?
// 哎,这么烫都做不出来,AFO 了,【】
- 做题日志
//I'm Luogu UID 1049103 @Airbus_A380
//CCF Give me 1= Please I DON'T WANT TO AFO
//20251101 0931 No thoughts. Try special data.
/*
A: a[i]=1.
1^1=0.
-> 1^1^1=0. 1^1^1^1=1.
0^1=1.
so if k==0, the answer is n/2 because the parts are {1,1},{1,1},......
if k==1, the answer is n because the parts are {1},{1},......
if k>1 , the answer is 0 because Can't find parts >1 in an arr with 1.
*/
//20251101 0944 Still no thoughts. Try BruteForce.
//20251101 1000 BF Test Data 5 WA. Ans 69 Out 9.
//20251101 1004 BF Test Data 5 WA. Ans 69 Out 26.
//20251101 1018 BF Test Data 5 Still WA.
//20251101 1018 BF Change thought.
//20251101 1031 BF Test Data 1 WA. Ans 2 Out 1.
//20251101 1031 BF Test Data 1 OK. Proceeding Test.
//20251101 1034 BF Test Data 5 WA. Ans 69 Out 68.
//20251101 1034 BF Test Data 5 WA. Ans 69 Out 67.
//20251101 1034 BF Test Data 5 WA. Ans 69 Out 68.
//20251101 1135 Coded SPD B.
//20251101 1137 SPD B Test Data 4 WA. Ans 63 Out 71.
//20251101 1142 SPD B Test Data 4 OK.
- 各种各样的 afo
// In here i am going to be AFO
// max:75+16+20+28=139 yes,AFO
// I have noting to say,but...
// AFO in 2025/11/1
//score <= (25+48+10+32) = 115
//gua fen qu jian [0,115]
//100% no 1=
//AFO
//luogu UID:513746
//make a friend?
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("replace.in","r",stdin);
freopen("replace.out","w",stdout);
int idntwt,afo;
cin>>idntwt>>afo;
for(int i=0;i<afo;i++){
printf("0\n");
}
return 0;
}
- FUCK CCF MOM
- 世末歌者
/*只不过对那个没问题的话,你我已经不在迷茫
所以啊 ~~~
别多想 妄想感伤代偿联盟
抱着爱和理想高唱着我们
那无处可去的愚者的Melody
再跳转 转生 和瞬间动移
轮回千次最后却无奈放弃
伴随着那无尽的爱舞翩翩起
那 一般 爱情 对象 年龄
恨着爱去维护的那约定
一步步顺着轨迹慢慢变了心
糟透了 这人际润滑剂
一来 二去 伤地不留 一丝痕迹
混合便成了爱情的philosophy
......
......
I AFOed
还记得我敲出“Hello World”的那一天吗?
还记得我第一次考模拟考的那一天吗?
光英已去,千载过,功成者 都付笑谈间
在这几年里,我们逃了很多跑操,听了很多术曲,还收获了很多美好的回忆;
我的歌声,如今也该断绝了呢。
OI,我们应该也缘尽了吧。
......
极夜与永昼
别离与欢聚
脉搏与呼吸
找寻着意义
......
不知道为什么,又哼起那"不为人知"的歌了。
goodbye OI.
P.S.这是我三天以来的第七场考试,我已老实,求放假。
又P.S.看到的都去听《世末歌者》!!!
*/
- 火星文
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("club.in","r",stdin);
freopen("club.out","w",stdout);
afqwfg3qio sajvyfqkjh;a
fkjhcjqnfyqancjkagvn;vjq(fhgja);a
jchqnkjya,mufqjhv;
aiocjqj8yfhacqf asjfojciojw;
acjkj8ifqjhcqhnisfn3q ajfq)fucjajiof
jsrisjfiocmafujakjfjhafhd ;pjp;uofjiojqlijf;f
aoicjlkqjfiojluiojlkaiufa;f
aickljqioflkl;ioacqi
;a
ckljqijfajclkujacqk f;uzf89(kgioejaj);
aijcoiualufiijzklajfizu8qkmklzukzjcqf;
foijkajijkjioujijzkluaejflyhvnjijfioaufn;
afiu cjqoiuiajf ajcj
;cauifkjnjoyfijfaoiyiof
'
;caufhiqfuiajklufwfa;fa[ifqu
asfoiuqoiwjfoiqujfikwqjfijj9gyfhlkjjfa(jfvaisjf';
aiojciojqioufiajiujfkajfjlka;
ahiacjlajfajlfjaljflaq;
afjicjlkajfafoiahkjuhtg
;
ajcifjiujafjoif;
afjflkjajflijf
:
fjajfaiojfjqiou
;
ahfjlkja9oufq2u8iajkfqijf
;
ajcqiojoiewufjiohjfioa;
a';aifujafjfkaj;';
isuijfqouioajhfioa;
ajacjqlfjajfjojf{
faofkfjij
al;kfoaf;jfa
};
klajfqkhfjfgqfhaufujqju8yuhaicj;
afkjsfqfaujlkjfq;
afjiocjhqjiufja;
afkljfimlkjeq;
a;fijqflujaif;
a;fjqfhqwfjiaf;
ioafaljfioqajf
';jfiujfjljf';
asfdiouwqfh;
afqijfi
;
return 0;
}
- lxl I love you
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("replace.in","r",stdin);
freopen("replace.out","w",stdout);
int n,m;
cin>>n>>m;
for(int i=1;i<=m;i++)
{
cout<<0<<endl;
}
return 0;
/*
lxl I love you!
I will AFO.
OI I love you too.
You give me so much.
Now it is time to say good bye.
Zero is not an end, but a new start.
Hope that I wiil get her love.
forever...
lxl I love you!
---cyl
*/
}
- 闲话人
/*这是一道dp题,连我这样的人都能看懂题目,虽然我觉得离正确答案就差一点点了,式子差点就推出来了,结果最后还是连样例都过不了
只能卑微地骗几分了QAQ
不过这次考试我确实感受到了题目的精妙设计
平时懒得做dp题的后果
那就是你凭借直觉想到了正解后
你又不会写
QAQ
待明年归来,还是一条好汉哈哈哈哈哈
想念MC的337天
昨天晚上忘记了比赛,0点睡的
hhh
今年题目好简单
可惜我做不出来
上联:CCF精妙数值恩情长
下联:WHK超有分数你二龙?
我说OI没数值,WHK有120点数值,应该敲WHK
我说两个都懒得敲了直接回忆
虽然回忆也拿不到红钥匙awa
你说的对但是〇神是世界上最好玩的游戏
我给我自己起的英文名叫Mist()
虽然不知道有什么用
但是挺中二的
假期根本不够用啊啊啊啊啊啊
我要回去打游戏啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
上次看见星星是5年前了
现在连老家都看不见了
拜托,我老家是四线城市的一个小山村欸
为什么?
我超级想看星星
这样吧,茴香豆的“茴”字有四种写法
处理人际关系真的好难啊
求你们了不要随意接近我呜呜呜
就算你们是善良的我也会哭欸
我真的不想这样
当我想要伤害别人的时候我会哭得很厉害
我的一个很好的朋友也这样说(我不用处理和他的人际关系,这很好,知道吗?)
他自称是很懦弱很善良的人
我觉得他确实是
当我和他诉说我的愿景时
他说”你真的很勇敢“
可是其实我从来没有真正地迈出一步
就算我做了一点有意义的事情吧
确实是有的
但接近于无
而且现在我又抱歉我给他注入了希望的种子了
*/
- I AK CSPJ(默哀,这个人 freopen 打错了)
#include<bits/stdc++.h>
#define ll long long
#define y1 y114514
using namespace std;
bool cmp(char a,char b){
return a>b;
}
int main(){
freopen("number.in","r",stdin);
freopen("number.out","w".stdout);
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
string t;
cin>>t;
string s;
for(int i=0;i<t.size();i++){
if(t[i]>='0'&&t[i]<='9')s+=t[i];
}
sort(s.begin(),s.end(),cmp);
cout<<s;
return 0;
}
/*
I AK CSP-J!
luogu: zbl2012
//freopen("number.in","r",stdin);
//freopen("number.out","w".stdout);
*/
- employ1
#include<iostream>
#include<string>
#include<cmath>
using namespace std;
int main(){
freopen("employ1.in","r",stdin);
freopen("employ.out","w",stdout);
int n,m,t,cnt_yes=0,cnt_no=0;
cin>>n>>m;
t=n;
char a[n]={};
cin>>a;
int c[n+1]={};
for(int i=0;i<n;i++){
cin>>c[i];
}
// sort(c[1],c[n+1]);
for(int i=0;i<n-1;i++){
if(c[i]>c[i+1]){
int x=c[i];
c[i]=c[i+1];
c[i+1]=x;
}
}
for(int i=0;i<n;i++){
if(a[i]=='1'){
cnt_yes++;
}
else if(n=='0'||cnt_no>=c[i]){
cnt_no++;
}
}
cout<<cnt_yes%998244353;
}
- 汉密尔顿
//额,现在是17点49分,我骗完了(?
//这些骗分看起来都很好想...也可能是我想简单了
//有点燃尽了,这个第一题真是心灵和肉体上的折磨...可能别的大佬10分钟以内就打完正解了但是我真是太废物了QAQ
//骗你的时间没这么长
//Raise a glass to freedom, something that you will never take away
//剩下30多分钟好像也不能干什么了=(
//look at where you are, look at where you started
//The fact that you're alive is a 完蛋了奇迹的英文怎么写
//miricle mirecle mericle maricle miracle!
//谢谢输入法终于试出来力=)
//Just stay alive, that would be enough
//石头说我和hwh在一起不会超过10年
//但在此之前至少也有9年(?
//石头在考场外面等我,但她的朋友我忘记带着一起来了,对不起=(
- 很会打字
/*
我写了一个半小时然后发现萎了
我真的要喷人了
*/
- 终于可以睡觉了
#include<bits/stdc++.h>
//-fsanitize=address,undefined
//For my dearest,Venti,[] and 3_7.
//st:17:05
//ed:17:21
//exp:test | pts
/*
感觉自己做不出来,但是赛后可以验证一下我现在想到的对不对
建图?对于每个替换,然后就是每个询问就在图上跑?
终于可以开始睡觉了
*/
using namespace std;
const int MAXN = 105;
int N, Q;
pair<string, string> s[MAXN];
string s1, s2;
int main(){
ios::sync_with_stdio( false );
cin.tie( 0 );
cout.tie( 0 );
freopen( "replace.in", "r", stdin );
freopen( "replace.out", "w", stdout );
cin >> N >> Q;
for( int i = 1; i <= N; i ++ ){
cin >> s[i].first >> s[i].second;
}
while( Q -- ){
cout << 0 << endl;
}
return 0;
}
- I feel unhappy
/*
It's so funny
I feel unhappy
make my code clean
Ican't AK
I love C++;
I love C;
I must FAST NOW!!!
17:32
*/
- 我们永不言弃
/*
This is a fake code
The result of the code is the wrong answer
The writer has given up to try to write it
......Nevermind.
每当一只铁鸟
消失天际
每当一架客机
沉入海底
故障事故阴谋
灾难原因
全都成为一个谜
但是我们永远
不会放弃
只为把那真相还给你
扑朔迷离抽丝剥茧
终于把故事理清
生命代价承受起的教训
一定要记清
希望茫茫蔚蓝天空
再无折翅雄鹰
——by: We Never Give Up
*/
- 棍木
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
//feropen("employ.in","r",stdin);
//freopen(employ.in,"r",stdin);
//freopen("employ.in",r,stdin);
//freopen("employ.ans","r",stdin);
//freopen("employ.txt","r",stdin);
//freopen("employ1.in","w",stdin);
//freopen("employ.out","r",stdin);
//return 114514
//陈哲
//汪楚奇
//小粉兔
//lxl
//noip
//ynoi
//i ak ioi
//atcoder
//codeforces
//loj
//uoj
//acwing
//luogu
//xyd
//xyddb
//AFO
//afo
//ak
//AK
//jiangly
//mike
//我常常追忆过去
//const int mod = 998224353
//cout<<rand();
//斜二倍增
//0721
//yozisoft
//原神
//genshin
//tnt
//miku
//pjsk
//bang dream
//mygo
//ave mujica
//当你们看到这条说明引到人了
freopen("employ.in","r",stdin);
freopen("employ.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
cout<<0;
return 0;
}
/*
唉写点东西吧
注意到今年提高组大纲新增了扫描线,bitset,manacher
上午复习了扫描线模板
打了一道bitset的题 她叫做 小清新人渣的本愿
然后爽玩 魔法少女的魔女审判 ,推了两个案子
然后出发去考点
穿了拖鞋十分显眼
并成功成为全校只打s选手中第一个到考点的
没有复习manacher,敢考我就敢爆零
考场没几个认识的,认识的大佬全部在四室,我在一室
现在是 2025/11/01 16:58
分数期望100+[76,100]+50 = [226,250]
T1 贪心地分配之后,若有部门人太多就再次贪心地踢掉一些人。
预测绿
T2 2^k枚举建设哪些新点,对于枚举出的每个方案跑一次最小生成树
然后对于边的排序不用每次重排,可以双指针
加上若干剪枝可以0.5s过大样例
都跑满估计76以下,很大概率76
挂分概率不小
我个汤比写了1h发现读错题意了,所以没时间想满分只好将就76
预测蓝~紫?
T3 容易想到O(qL),得到了50
我写的是什么使啊
调都没调过大样例 心里没底
但是貌似跑得还挺快,七八秒钟可以跑过我手搓的极限数据?
我觉得吧挂分概率极大
预测蓝~紫
此时还有30min,寄
T4 不可输入单个标点符号。
不可输入空白文本
棍木棍木。 棍木棍木 。
棍木棍木。 棍木棍木。
今年怕不是7级勾线都上不了
万一人均能过T3我不是一等都没有了
万一我T3挂多点我不是一等都没有了
别搞我
我能去wc吗
我能去apio吗
*/
- 屁股肉丝
//I love playing Phigros, Arcaea and Paradigm:reboot
//My favourite song is DESTRUCTION 3,2,1
//My ranking score is 14.81 (My skill is not very good)
- 富士山下(这个是粤语拼音)
/*
laan lou jye pin ci syut fa
jaam jap dik nei dung ma
zjye fung lau ngo kup nei mo dou yau kam fa
lin diu liu zik ya but pa
zaam mo tsi zung hin gua
fu saam sjyun zung gaam tin sjoeng tse nei wui ga
jyun loeng ngo baat zoi song fa
soeng haau jing jiu git ba
fa fan pou mun sum loi fun tsoeng tsoi hoi pa
jyu nei fei ngo baat ga
bei tsi zung zoeng fo fa
jaat sung yaat saai dung jaat tin soi jiu doi ga
soi dou zi dak na sjoeng sau
kao yung pou yek naan yum nei jung jau
jiu jung jau bit sin dong saat hiu zaam zip sau
tsang jin zjyu sjut lou lau lung
waai ho waai hou si loi lau
soi nung pang ngoi ji jiu fu si san si jau
ho baat ba bei ngoi gaam gok ga tsit si loi zi nei hoi kau
si gun lyoi zaao baat dou ta yim wu aan mou
tsin tsaan aang fa zoeng sek tou
tsoi jyun dik pao ha bin tou zaau
ngo jyut baat hon yau
wong gai loi jiu go yaat zaau
ngo bin fa wu yaau
tseng jyen zit baat jiu syut cun
zi gaam fu nei faat dun
ze zung zi tai ho wui ling nei gaang sum sun
lau zoi hei tse loi tsoi nun
jeng goi zaam mo guai hun
zaam mo ho ji zoeng sau wun yaan tong waak sunt
jaan wut dou gei soi syun dun
saat lun zi jau gang dun
gui ga soi jiu gei lei lou soi naang jyu sun
mung diu ngo gen nei ngaan jyun
jing fa hoi liu gei zun
dong ging zi loi yaat zau bei yaat sai yiu yun
soi dou zi dak na sjoeng sau
kao yung pou yek naan yum nei jung jau
jiu jung jau bit sin dong saat hiu zaam zip sau
tsang jin zjyu sjut lou lau lung
waai ho waai hou si loi lau
soi nung pang ngoi ji jiu fu si san si jau
ho baat ba bei ngoi gaam gok ga tsit si loi zi nei hoi kau
si gun lyoi zaao baat dou ta yim wu aan mou
tsin tsaan aang fa zoeng sek tou
tsoi jyun dik pao ha bin tou zaau
ngo jyut baat hon yau
wong gai loi jiu go yaat zaau
ngo bin fa wu yaau
soi dou zi dak na sjoeng sau
kao yung pou yek naan yum nei jung jau
jiu jung jau bit sin dong saat hiu zaam zip sau
tsang jin zjyu sjut lou lau lung
waai ho waai hou si loi lau
soi nung pang ngoi ji jiu fu si san si jau
ho baat ba bei ngoi gaam gok ga tsit si loi zi nei hoi kau
si gun lyoi zaao baat dou ta yim wu aan mou
tsin tsaan aang fa zoeng sek tou
tsoi jyun dik pao ha bin tou zaau
ngo jyut baat hon yau
wong gai loi jiu go yaat zaau
ngo bin fa wu yaau
nei waan yim baat gau
ngo ba zye caan nin fung lau
sung zang nei gaai zau
*/
- 反方向的万能头
- 崩批&florr 批
//I think I really can't do anything.Now it's only 5 minutes to leave.I am sad.I like Star RAIL
//and florr.My Star rail ID is 155573764,I love Firefly!And my florr name is The_rain
//And now I am Lv74.You can come and play with me!
- nyaaaaa
/* Nyaaaa~
stikzzz */
- 复制 pdf
/*
CSP-J/S 2025(第二轮)广东地区认证考生注意事项
1. 请各位参加CSP-J/S 2025(第二轮)认证的选手严格遵从监考教师的指引完成认证机考。
2. 请每位选手在E盘的根目录下建立一个以自己的考号命名的目录。选手考号请参见准考证(注意不是机号)。例如某位考生的考号为GD-S00123(其中短横线为英文半角的减号),姓名为张三,则该选手所产生一切提交文件的保存路径为:“E:\GD-S00123\”,我们将只收取该目录下的所有文件和文件夹。注意,选手的考号格式为GD-SXXXXX(或GD-JXXXXX),如GD-S00001(或GD-J00001)。
3. 特别注意:“_”与“-”、大小写字母的区别,文件夹名不得出现空格(包括前后)。
4. 选手在各自的目录下请编写一个以自己名字为文件名的文本文件。文件内容包括:姓名,性别,年级,地区,学校,辅导老师,提交的程序。该文件的格式无特殊要求。
5. 在选手答案目录下,请选手将提交的用于测评的全部文件(源代码、有关答案等)直接放在以自己的考号命名的目录下以题目英文名称命名的子目录中。以选手GD-S00001为例,答案目录的储存结构为:
└── GD-S00001----------------------------------------------<目录>
├── task1---------------------------------------------<目录>
│ └── task1.pas----------------------------------<文件>
├── task2---------------------------------------------<目录>
│ └── task2.c-------------------------------------<文件>
└── task3---------------------------------------------<目录>
└── task3.cpp----------------------------------<文件>
6. 输入输出均为文件,选手程序读取文件与写入文件操作均在当前路径下,即不带任何绝对路径。输入输出严格按照题目要求进行,不需要做任何输入和输出提示,多余的提示我们将判为错。
7. CSP-J/S 认证最后成绩的确定以CCF NOI 科学委员会在NOI Linux 2.0系统及其指定的评测工具下的评测结果为准。请注意竞赛环境不同而产生的问题,包括但不限于:
7.1 windows下C/C++的__int64类型在Linux下无法通过编译。
7.2 输入文件中 windows下换行符与Linux下换行符的表示方式不同。
7.3 如果用scanf和printf语句时,注意不要用“%I64d”,这个Linux下是不能编译通过的,要用“%lld”,或用流输入输出。
8. 关于输入文件格式与输出文件的比较方式约定:
8.1 输入文件中除相邻元素间的一个空格符外,没有其它多余的空格。输入数据的每一行末尾都有一个回车,包括文件的最后一行数据在内(即输入文件最后一行数据的末尾也有一个回车)。除此之外,输入文件中没有其它不可见的控制符号。
8.2 对输出结果将在过滤输出文件的行末空格和文尾回车后采用全文比较方式。输出文件在行首(开头)不允许有多余的空格。输出文件的前面和中间不允许有多余的空行。当同一行中有多于一个元素时,相邻的元素间有且仅有一个空格分隔符,不允许使用其它分隔符号。
8.3 行末空格符和文件末尾回车符的有无对选手答案正确性的判断不产生影响。
8.4 如有特殊规定将在题目中给出详细说明并参见样例。
9. 选手不能带任何资料进场(包括纸张和电子器材)。
10.考生需要签署《CSP-J/S 诚信考试及知情同意书》(由考点统一提供)。考生本人已知晓windows系统和NOI Linux 系统的差异,由考生本人选择系统完成比赛,并将本人的代码全部存放在Windows系统下的指定位置中。并且考生本人已知晓CSP-J/S最终评测是在Noi Linux下完成,编译以虚拟机NOI Linux 2.0下为准,如最终评测产生编译问题,由考生自己负责。若考生因认证环境与评测环境的不同而出现成绩差异提出申诉,广东省组织单位和CCF概不受理。
11. 请选手每15分钟保存一次程序,以防机器故障。
12. 考生在比赛结束前,可在准考证上记录源代码文件字节数(右键属性,大小,不是占用空间!)、文件名等信息,以供赛后核对。
13. 祝各位选手好运。
省组织单位
2025年11月01日
*/
/*
2025 CCF 非专业级软件能力认证
CSP-J/S 2025 第二轮认证
入门级
时间:2025 年 11 月 1 日 08:30 ∼ 12:00
题目名称 拼数 座位 异或和 多边形
题目类型 传统型 传统型 传统型 传统型
目录 number seat xor polygon
可执行文件名 number seat xor polygon
输入文件名 number.in seat.in xor.in polygon.in
输出文件名 number.out seat.out xor.out polygon.out
每个测试点时限 1.0 秒 1.0 秒 1.0 秒 1.0 秒
内存限制 512 MiB 512 MiB 512 MiB 512 MiB
测试点数目 25 20 20 25
测试点是否等分 是 是 是 是
seat.cpp xor.cpp polygon.cpp
提交源程序文件名
对于 C++ 语言
number.cpp
编译选项
对于 C++ 语言
‐O2 ‐std=c++14 ‐static
注
. 意
. 事
. 项(
. 请
. 仔
. 细
. 阅
. 读)
.
1. 文件名(程序名和输入输出文件名)必须使用英文小写。
2. main 函数的返回值类型必须是 int,程序正常结束时的返回值必须是 0。
3. 若无特殊说明,结果的比较方式为全文比较(过滤行末空格及文末换行)。
4. 选手提交的程序源文件大小不得超过 100 KiB。
5. 提交的程序源文件的放置位置请参考各省的具体要求。
6. 程序可使用的栈空间内存限制与题目的内存限制一致。
7. 禁止在源代码中改变编译器参数(如使用 #pragma 命令)
,禁止使用系统结构相
关指令(如内联汇编)或其他可能造成不公平的方法。
8. 因违反上述规定而出现的问题,申诉时一律不予受理。
9. 只提供 Linux 格式附加样例文件。
10. 全国统一评测时采用的机器配置为:Intel Core Ultra 9 285K CPU @ 3.70 GHz
(关闭睿频与能效核),内存 96 GB。上述时限以此配置为准。
11. 评测在当前最新公布的 NOI Linux 下进行,各语言的编译器版本以此为准。2025 CCF 非专业级软件能力认证 CSP-J/S 2025 第二轮认证
...
*/
(注:下面是四道题的题面)
- 膜拜人(这三个人疑似一个机房的)
orz yy0707
orz zjy6
orz Skyler_Yunxi
orz greater_than
orz xiaoyuhao
orz humaoxing
orz yuanhaorana
orz zssyt
orz less_than
orz ULL
orz 1vegetable
orz wangyuxuan2024
orz emmoy
orz CHD
orz CHDfan
orz yjxfan
orz wtc
orz ...
*/
/*
It is 18:09 now,I surf 18170 meters.
I hope that Skyler_Yunxi can get lan gou.
sto Zyj6 orz
sto Skyler_Yunxi orz
sto __yuanhaoran orz
sto nauyng orz
sto sunxuanyu orz
sto AUSG orz
sto 1vegetable orz
sto winyei orz
sto 2024zxj orz
sto less_than orz
sto greater_than orz
sto zssyt orz
sto Harvey2024 orz
*/
/*
stO YY0707 Orz stO Skyler_Yunxi Orz stO __yuanhaoran Orz stO less_than Orz stO 1vegetable Orz
stO YY0707 Orz stO Skyler_Yunxi Orz stO __yuanhaoran Orz stO less_than Orz stO 1vegetable Orz
stO YY0707 Orz stO Skyler_Yunxi Orz stO __yuanhaoran Orz stO less_than Orz stO 1vegetable Orz
stO YY0707 Orz stO Skyler_Yunxi Orz stO __yuanhaoran Orz stO less_than Orz stO 1vegetable Orz
*/
(注:省略几十行)
- 追忆
/*
我常常追忆过去。
生命瞬间定格在脑海,我将背后的时间裁剪,折叠,蜷曲,揉捻成天上朵朵白云。
云朵之间亦有区别,积云厚重,而卷云飘渺。…………宛若梦境,太过清楚无法满足我的幻想,过分模糊而又坠入虚无。只有那薄雾间的山水,面纱下的女子,那恰到好处的朦胧,才能满足我对美的苛求。
…………街道推倒重建……………………
……………………
我该在哪停留,我问我自己。
完了没背下来qwq,虽然但是紫题是基础,黑题是拔高。
这怀子最后一次参加J组了,希望能AK,rp++。
说句闲话,AK csp-j的最好方法是
AK了这场比赛,祝你们成功(滑稽
讲一些我发明的算法吧
1.给基环树O(N)求MST
2.直接返回false的O(1)判断素数,错误率仅有1/ln(n);
3.给排列排序,离散化……
lg用户名emmoy,欢迎交友……
我永远喜欢Ynoi,Ynoi最好了!
希望大家不可以总司令然后拿100pts
还有lg能不能补药再传刀子文了,感觉会被戳成筛子。
相信我,睡前打KDT或分块plus有助于失眠,舍友亲测有效。
zak我男神!
怎么办,我舍友N^2过玩具装箱,我的优化白学了。
世界上最令人讨厌的图就是基环树,没有之一。
为什么感觉oier人均一个(可能不止)npy,感觉自己好失败qwq。
所以我妻是由乃的姓吗?
发现自己现在基本每场ABC都切不了G,好失败。
有没有人能教我未来日记的分块怎么打,急。/bx
感觉不知道该写什么了,就到此为止吧。
算了,还有1h,再随便写写。
对了有人知道怎么加入拜鸭教吗?
感觉自己啥都不会,希望下午别再出dp题了。
*/
//我常常追忆过去。
//但是再见了,不曾追忆的过去。
// --Exp10re,2025/11/01.
/*
9:05(也许是9:10?): 应该是AK了?
--------------------
我该在哪里停留? 我问我自己。
--luogu uid:752017--
*/
- AK
#include <bits/stdc++.h>
#define int long long
using namespace std;
const int N = 5 * 1e5 + 10;
int n, k, a[N];
signed main ()
{
freopen ("xor.in", "r", stdin);
freopen ("xor.out", "w", stdout);
scanf ("%lld %lld", &n, &k);
for (int i = 1; i <= n; i ++)
scanf ("%lld", &a[i]);
cout << n / 2;
return 0;
}
/*
Give me the "er deng jiang" PLEASE !
CCF tell me ! Why my score is less than 200!!!
(Okay, just like that I don't know my score)
(But I'm really angry for my last test)
(I had only 40pts!!!)
(So, please give me a great score this time)
(Let me have a wonderful ending)
^-^
(...^ - ^...)
I AK IOI
I AK IOI
I AK IOI
114514
114514
114514
114514
114514
114514
114514
114514
114514
114514
I don't like "ethics and the rule of law".
Because I think it is boring.
And I'm really like maths.
Because it is interesting.
I can't have any score in "xor".
I will get "Running time error" also "Wrong anser".
别看我一直写英文,我只是想写
*/
/*
I AK CSP-J
I AK CSP-S
I AK NOIP
I AK GDOI
I AK NOI
I AK IOI
hahahahahahahahahaha
*/
#include<bits/stdc++.h>
#define I using
#define AK namespace
#define CSP std
I AK CSP;
const int maxn=15;
int a[maxn];
int n,m;
int R_s;//СR��score
int main () {
freopen("seat.in","r",stdin);
freopen("seat.out","w",stdout);
cin>>n>>m;
for (int i=1;i<=n*m;i++) {
cin>>a[i];
}
R_s=a[1];
sort(a+1,a+1+(n*m),greater<int>());
int r=0,c=0;
for (int i=1;i<=n*m;i++) {
if (a[i]==R_s) {
if (i%n==0) c=i/n;
else c=i/n+1;
if (i%n==0) r=n;
else r=i%n;
if (!(c&1)) r=(n+1-r);
}
}
cout<<c<<' '<<r;
return 0;
}
- 哈基米
struct hajimi{
int st,en;
};
hajimi t;
vector<hajimi>faan;
- 各种各样的神秘数字
const int mod=1e9+7,mod1=998244353,ba=130721,bb=780721;
mt19937_64 ciallo(0x1145140d000721);
const i128 P = 114514191981007219ll, bas = 19260817;
const int N=2e5+5,base=19260817;
const ll base=19260817,mod=1e9+7;
constexpr int mix64(const int &x)
{
return x * 0x1145141919810CCFull;
}
- 不想应聘别来应聘
/*
这个题数据范围有 c_i=0 是何意味,不想应聘就别来应聘(
*/
- 小恐龙
/*
一眼丁真,我不会做。
暴力,启动!
预期得分:1~2,6~8,16~17, 3~5剪剪枝说不定能干过几个,12~15加把劲看看能不能水过。
28~52分左右。 16:05
写完T2后来了一把小恐龙,喜提1635分,比全考场CSP-S复赛分都高(并不)。
打的还是太菜了呢。
不说那么多了,我们继续思考T4部分分。 16:50
其实O(n!)的算法也很有效率的,对吧。
上面的预期得分全是假的。16:54
+8pts 17:10
姬海棠果可爱滴捏——这句话能不能给我+8pts啊。
探女也可爱滴捏。探女探女快祝所有oier rp--。17:11
加的减枝仍无法肘击过n=18的数据,我放弃了。17:52
尝试写dp,但dp有容斥,我不会容斥。我是废物(´。_。`)。18:04
*/
// T4 is an simple DP, much easier than last year's.
// Finished at 9:33 Nov.1 2025.
// Started checking!
// Played chrome://dino for a while, about 10min.
// So boring.
// Played it again qwq. The highest record is 494.
// Started checking!
// I thought I will play no more before 12:00.
// Boring!!!
// slept for 1min.
// Checked for a while.
// At 11:01, I decided to sleep longer for afternoon.
// I still couldn't sleep because I missed her.
// At 11:07, played the dinosaur game and created a new record 1169.
// I love her.
// At 11:21, I deleted all the files named xxx.exe/in/out/ans.
// rp=inf;
- 重启人
/*
哈哈哈又是我,写完游记也有点无聊剩45分钟打算留20分钟检查15分钟吐槽10分钟上厕所
槽点1:开始的时候密码发错了,少了一个数字,拖延3分钟左右虽然没多久
2:我检查一份代码1个小时(先说结果:数组开5 * 1e7,多打了一个0气死我了,电脑的报错也是奇怪execute这个词看不懂翻译不出来
重启一遍之后还是运行不了,我又重新下了一个Dev也不行,再重启一遍也不行,最后没招了当时真的有点崩溃
询问监考老师也没有回答,他原话是我自己的代码写的他也不知道为什么
最后还是运气好发现了这个错误
3:神奇,电脑有毒,每次直接点保存在桌面的.cpp文件都点不开
我也以为是bug,又重启一次(当然,每次重启都要保存一遍之前的东西滴)
重启完不到5分钟监考老师就说这个电脑点不开正常的,让后叫我们别关掉
那我想问了,为啥我右键打开不行,但是Dev里面点文件打开却可以
4:上午就听别人说J前两题简单后面难,下午s应验了
5:没什么槽点了随便写写
6:水时长,看上去写的多主要是
7:ok时间到检查去了
*/
- 祝你漫长的人生路上,永远有幸福的魔法相伴。
/*
Minasan, hajimemashite, Otomachi Una desu~~, a grade 12 OIer, maybe you know me.
This maybe my last year in CSP (hopefully i will take part in it some next year,
when I study PKU).
So i will post this as my <CSPS2025 YOUJI>
this is what happen before the contest:
Yesturday I played game <deleted>, and passed the Shirasaki rount.
Wake up at about 9:00 am. Watch Weibo for about 1h and go sleep again.
After wake up again, it is 11:50 while the school bus go at 12:20.
I brought M.C. online. But when I got there, there was a lot of people. I cant wait!!!
so I brought one bottle water and one bread at Family Market at 12:15
then i ran to school. I am on time.
this is what happen during the contest:
solved A at first about 10 minute.
Problem B is a classic MST and dfs problem. After I read the problem before read Constraints, I
realize this problem is hard to do poly(nk), so k must by very small ~~ that is
solved B at about 25 minute
Problem C is about string. before CSP, I talk to my friend that I guess there will at least two
problem about ds. But obviously, Im wrong :( this problem is a easy string+ds problem,
to solve this, you can just use trie and 2-d counting by BIT.
solved C at about 1h
Problem D is counting!!! actually yesturday Starsilk (Champion of WF 2025) said he wish there will
be 4 counting problems. Now, the counting in at Problem D. btw, Im not good at counting :(
But furtunaly I solved it because this is a PIE Problem. I am a little known PIE tricks.
(but why you didnt solve D2T2 you db)
solve D and AK CSPS2025 at about 16:30, only 2 hours.
CSP should hurry up!!!
Addtionly, Problem D can do every m from 0 ~ n but the problem only ask us to calculate one. HEYIWEI?
17:00 write this youji
17:24 wrote a checker for Problem C,D
Otomachi Una, 2025/11/1 at GDF with love
祝你漫长的人生路上,永远有幸福的魔法相伴。
*/
- 初三的,想来广附?
//help me!##F!
//please give me 340
//it's very important for me for the reason that i am a nine grade student
//in order to go to GDFZ to achieve my dream ,i must get enough prize
//if you give me 340,i will orz you
//luogu uid 1129279
//by liangcha_crush_ly
- 复制大样例人(这个人的 employ.cpp 复制了 replace 的大样例)
37375 27578
iuj iit
jnzspf vkyewp
nxuevbvp ddrdlzmy
vpeplmmye xsdqlspol
cvndka jlwmet
znnr fzcv
btweqfstl kfqtjotpb
f h
fvxgrpvh pjxbxglm
pxnyqbkdsh upuhuhrtag
oqgwykr iljzuvi
(省略几万行)
- 你被可爱的细细爱抚 mark 了
//[0,40];
//An Omega Oracle has been sent to hell by M28 with 100% damage!
//You were marked by lovely_CCF.
- CCF 良心
/*
luogu:shuaiqbr
Zan Yang CCF
1h zuo wan
gan jue neng AK
nan du red red yellow yellow
CCF liang xin
*/
- zno dzd orz
/*
zno CCF orz
zno DuZiDe orz
zno CCF orz
zno DuZiDe orz
zno CCF orz
zno DuZiDe orz
zno CCF orz
zno DuZiDe orz
zno CCF orz
zno DuZiDe orz
mi huo xing wei da shang
*/
- dear CCF
- 这个题真的可做吗?
/*
???
Thank you.
Are you OK?
Hello, thank you, thank you very much.
Hello, thank you, thank you very much.
Oh my CCF is the problem really can be solved?:(
Even don't know how to write brute force……T_T
*/
- 我是奶龙!
/*
好想上迷惑行为大赏啊
先来点基础的
freopen("clbu.in","r",stdin);
freopen("culb.in","r",stdin);
freopen("cubl.in","r",stdin);
freopen("cblu.in","r",stdin);
freopen("cbul.in","r",stdin);
本来想整个全排列的,可惜我太懒了
讲则笑话吧
众所周知,“乳”字可以形容幼年生物体,例如“乳鸽”,“乳猪”。
“奶”这个字也是一样
中国古代皇帝自称为“龙”
那皇子争皇位时会不会说
“我是奶龙!”
“我才是奶龙!”
*/
- 不存在
#include<bits/stdc++.h>;
using namespace std;
//freopen"culb.in""r" std(in);
//freopen"culb.out""w" std(out);
int mian(){
int t,n;
cin>>t>>n;
for (int a=1;a<t*n;a++){
cin>>a;
}
for(int t=1;t<5;t++){
for(int 0<j<=3){
s=a[j]
if (a>n/2)
cout<<"不存在"
}
}
}
return=0;
- .in 空格
fre("number.in ","r","stdin");
fre("number.out","w","stdout");
#include<bits/stdc++.h>
using namespace std;
int x,y,a[105],z,k;
int main()
{
freopen("seat.in ","r",stdin);
freopen("seat.out","w",stdout);
cin>>x>>y>>z;
for(int i=1;i<=x;i++)
{
cin>>a[i];
}
k=a[105];
sort(a+1,a+1+x);
for(int i=1;i<=x+y;i++)
{
if(a[i]==k) z=i;
}
int n=0,m=0;
if(z/4!=0) n=z/4+1;
else x=z/4;
y=m*x;
y=m+x;
if(n%2==0) x=x+m+1;
if(x==3||y==3)
{
cout<<"3"<<" "<<"1";
return 0;
}
cout<<x<<" "<<y<<endl;
fclose(stdin);
fclose(stdout);
return 0;
}
#include<bits/stdc++.h>
using namespace std;
long long n,k,a[500009],m,dp[500009],c[500009];
struct node{
long long l,r;
}b[10000009];
int main(){
freopen("xor.in ","r",stdin);
freopen("xor.out","w",stdout);
cin>>n>>k;
for(int i=1;i<=n;i++){
cin>>a[i];
}
for(int i=1;i<=n;i++){
long long q;
q=0;
for(int j=i;j<=n;j++){
q=q^a[j];
if(q==k){
c[i]++;
m++;
b[m].l=i;
b[m].r=j;
}
}
}
int s;
s=1;
for(int i=1;i<=n;i++){
for(int j=s;j<=s+c[i]-1;j++){
dp[b[j].r]=max(dp[b[j].r],dp[b[j].l-1]+1);
}
dp[i]=max(dp[i],dp[i-1]);
s=s+c[i];
}
cout<<dp[n];
fclose(stdin);
fclose(stdout);
}
- .ans
#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int m[10005][10005],a,b,c,u,v,w,n,k[11][10005],cv[10005],o;
vector<int>g;
int t=100009;
int search(int l,int h,int q){
if(l==0){
g.push_back(q);
return 0;
}
int y=q;
for(int i=1;i<=a;i++){
if(m[h][i]!=-1){
o=m[h][i];
q+=o;
m[h][i]=-1;
m[i][h]=-1;
search(l-1,i,q);
m[h][i]=o;
m[i][h]=o;
q=y;
}
}
return 0;
}
int main(){
g.clear();
ios::sync_with_stdio(0);
cin.tie(0),cout.tie(0);
freopen("road.in","r",stdin);
cin>>a>>b>>c;
for(int i=1;i<=a;i++){
for(int j=1;j<=a;j++){
m[i][j]=-1;
}
}
for(int i=1;i<=b;i++){
cin>>u>>v>>w;
m[u][v]=w;
m[v][u]=w;
}
for(int i=1;i<=c;i++){
cin>>n;
for(int j=1;j<=a;j++){
cin>>k[i][j];
}
}
search(a-1,1,0);
for(int i=0;i<a;i++){
if(g[i]>=0){
t=min(t,g[i]);
}
}
cout<<t;
freopen("road.ans","w",stdout);
}
#include<bits/stdc++.h>
using namespace std;
string a;int cnt=1;int ans[10000010];
int main(){
freopen("number.in","r",stdin);
freopen("number.ans","w",stdout);
cin>>a;
for(int i=0;i<a.size();i++){
if(a[i]>='0' && a[i]<='9'){
ans[cnt]=int(a[i]-'0'+0);
cnt++;
}
}
cnt--;
sort(ans+1,ans+1+cnt);
for(int i=cnt;i>=1;i--)cout<<ans[i];
return 0;
}
#include<iostream>
//#include<csdvoid>
using namespace std;
int main(){
int n,k;
int da[n];
freopen("xor//xor.in","r",stdin);
cin >>n,k;
for(int i=0;i<n;i++){
cin >>da[i];
}
freopen("xor//xor.ans","w",stdin);
if(n == 4&&k == 2&&da[1] == 2&&da[2] == 1&&da[3] == 0&&da[4] == 3){
cout <<2;
}
if(n == 4&&k == 3&&da[1] == 2&&da[2] == 1&&da[3] == 0&&da[4] == 3){
cout <<2;
}
if(n == 4&&k == 0&&da[1] == 2&&da[2] == 1&&da[3] == 0&&da[4] == 3){
cout <<1;
}
return 0;
}
- ,r,stdin
#include<iostream>
#include<cstdio>
using namespace std;
long long n,k,a[5005],sum;
int main()
{
freopen("xor.in",r,stdin);
freopen("xor.out",w,stdout);
cin>>n>>k;
for(long long i=1;i<=n;i++)
{
cin>>a[i];
if(a[i]==k)sum++;
}
cout<<sum;
return 0;
}
- 我是小孩
/*
...
pang bian you shenmi ru yizhi zaijushou.
diyici shi wen zenme da # .
dierci shi ba xiafangyangli dang cheng le
zijide wenjian.
disanci shi wen daimahou yaobuyao jia .cpp .
disici shi wen daima weishenme shurubuliao.
...
*/
- clean
//25 19 D:\GD-S*****\road\road.cpp [Error] 'class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >' has no member named 'clear'
//25 19 D:\GD-S*****\road\road.cpp [Error] 'class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >' has no member named 'clean'
- random_shuffle
else{
while( 1 ) cout << "I wish my random_shuffle to be AC!";
}
- empoly
freopen("empoly.in","r",stdin);
freopen("empoly.out","w",stdout);
- 虚拟机大蛇
#include<bits/stdc++.h>
** DO NOT EDIT THIS FILE.
** If you make changes to this file while any VirtualBox related application
** is running, your changes will be overwritten later, without taking effect.
** Use VBoxManage or the VirtualBox Manager GUI to make changes.
-->
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.12-windows">
<Global>
<ExtraData>
<ExtraDataItem name="GUI/Details/Elements" value="general,system,preview,display,storage,audio,network,usb,sharedFolders,description"/>
<ExtraDataItem name="GUI/GroupDefinitions/" value="n=GLOBAL,m=b88b538e-55d0-4049-aac9-15fa47f09875"/>
<ExtraDataItem name="GUI/LastItemSelected" value="m=NOI2.0"/>
<ExtraDataItem name="GUI/LastWindowPosition" value="641,256,960,520"/>
<ExtraDataItem name="GUI/SplitterSizes" value="317,642"/>
<ExtraDataItem name="GUI/Tools/LastItemsSelected" value="Welcome,Details"/>
<ExtraDataItem name="GUI/UpdateCheckCount" value="3"/>
<ExtraDataItem name="GUI/UpdateDate" value="1 d, 2025-10-31, stable, 6.1.26"/>
</ExtraData>
<MachineRegistry>
<MachineEntry uuid="{b88b538e-55d0-4049-aac9-15fa47f09875}" src="C:\Users\admin\VirtualBox VMs\NOI2.0\NOI2.0.vbox"/>
</MachineRegistry>
<NetserviceRegistry>
<DHCPServers>
<DHCPServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter" IPAddress="192.168.56.100" networkMask="255.255.255.0" lowerIP="192.168.56.101" upperIP="192.168.56.254" enabled="1"/>
</DHCPServers>
</NetserviceRegistry>
<SystemProperties defaultMachineFolder="C:\Users\admin\VirtualBox VMs" defaultHardDiskFormat="VDI" VRDEAuthLibrary="VBoxAuth" webServiceAuthLibrary="VBoxAuth" LogHistoryCount="3" proxyMode="0" exclusiveHwVirt="false"/>
<USBDeviceFilters/>
</Global>
</VirtualBox>
- you have on egg
#include<bits/stdc++.h>
#define ks 0
#define IloveCCF 0
#define you_have_no_egg 1
using namespace std;
int dp[5005],i,n;
int main(){
#if ks==1
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
#endif
//反正也不会,就写写注释 高级#if语法
#if IloveCCF==1
while(1) cout<<"CCF I love(fuck) you.\n";
#endif
#if you_have_no_egg==1
while(1) cout<<"You have on egg.\n";
#endif
return 0;
}
for(int i=1;i<=ml;i++)scanf("%lld%lld%lld",&l[i].i,&l[i].j,&l[i].s);//you have no eggs 读入都**超时
#include<bits/stdc++.h>
using namespace std;
const int N=5005;
int n,a[N];
signed main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin>>n;
for(int i=1;i<=n;i++) cin>>a[i];
sort(a+1,a+n+1);
if(n==3 && a[1]+a[2]>a[3]) cout<<1;
else if(n==3) cout<<0;
else cout<<"YOU HAVE NO EGG!";
return 0;
}
else{
cout << "You have no egg!";
return 0;
}
//you have no egg!
//cnt_broke++
(代码只有这一行)
-
闲话:https://www.luogu.com.cn/paste/579pljpn
-
第一次打 CSP
/*
di yi ci jing CSP di er lun , kai xin !
T1 100 (8:45)
T2 100 (9:15)
T3 5~25 (10:25)
T4 12~36 (10:10)
zongfen:217~261
T1 xie le ge jin si bao li de dai ma shang qu , ying gai neng A ba
T2 shao wei xiang le yi xia , ka zai ji suan le , ying gai ye mei shen me da wen ti
T3T4 jian zhi yang le ge yang QaQ
ming nian jiu chu san le , hai bu zhi dao ming nian hai neng bu neng can jia
*/
- nailong
struct nailong{
int val,club,pos;
};
void cleareset(){
ans=0;
memset(a1,0,sizeof(a1));
}
bool cmp(nailong a,nailong b){
return a.val>b.val;
}
- 已完成今日……大学习(后面大概是我是奶龙、紫题代表基础、codeforces 我来了、意大利面拌42号混凝土、我常常追忆过去)
//yiwanchengjinriwoshinailongwoshinailongwocaishinailongzitishijichuheitishidingjianhaizihuilezitizhijiezuoheititiaoguozhongjianyiduanlvtichengtilantidetizizhijietiaoguohaizizhihuiganjuehenmimangguoranzhuotihaideishangCFluogushishenmedongxijintianwokanjianwodeyigetongxuezailuogushangpianfenwoganjuetazaiwuruOIzaijianleluogucodeforceswolailewoganjueyidalimianhaidebansishierhaohunningtuyinweiwajuejideniujuhuiyinxiangdanbaizhisuchengufowochangchangzhuiyiguoquhoumianwanglewoshiqingshihuangqishiwomeisivwowushilairifengniweidajiangjunooooodaxuexi
- I'm Newbie
// chat to LUOGU 1058410 tell me you find me (I'm not goot at English)
// I'm a pupil, so I'm Newbie(Codeforces) (through i'm red name in luogu and my rating is 1014), so i think i only can get 2= or 3=.
-
德语
//Okay, ich muss verstehe N und M samt kleiner als 10 //Also es gibt kinde des "short" -
elseif lose
#include <iostream>
using namespace std;
int main()
{
foropen("number.in","r",stdin);
foropen("number.out","w",stdout);
int a,b,c,d,e,f;
cin>>a>>b>>c>>d>>f;
if(a>b>c>d>e>f)
{
cout<<a<<b<<c<<d<<e<<f;
}
elseif(a<b<c<d<e<f)
{
cout<<f<<e<<d<<c<<b<<a;
}
elseif(a>b>c>d>f>e)
{
cout<<a<<b<<c<<d<<f<<e;
}
lose(stdin);
fclose(stdout);
return 0;
}
- 假如你是李华
/*Hi,I'm LiHua.A middle-school OIer.It's my great pleasure to write this letter to you.
This test not only cosumes my energy but also makes me mad.The 1st problem and the 2nd problem are certainly easy.
But the 3rd problem is so hard that I cannot solve it.And the 4th problem I choose to cheat points.
I could get at least 20 Pts. in the 3rd problem and 36 Pts. in the 4th problem.So I'm not upset to AwayFromOi.
And I've just checked my codes so that I won't get poor grades.*/
/*
Unit 1 Friendship
I love my new school!I meet a lot of new friends there,Li Hua is one of them.
Li Hua is helpful and patient.He is also good at maths.When I meet difficult
math problems,I turn to him for help.We really like doing things together.When
one of us feels sad,we tell the other one and this makes us feel better.
When something interesting happens to me,I share my happiness with him.
Friendship is not only about having fun,but also about love,honesty,understanding
and trust.
*/
- define long long int
#include <bits/stdc++.h>
#define long long int;
using namespace std;
const int N=1e6+10;
string s;
int num[N];
int m;
signed main()
{
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0);
cin>>s;
int len=s.size();
for(int i=0;i<len;i++)
{
if(s[i]>='0'&&s[i]<='9')
{
num[++m]=s[i]-'0';
}
}
sort(num+1,num+m+1);
while(num[m]==0&&m>1)
{
m--;
}
for(int i=m;i>=1;i--)
{
cout<<num[i];
}
return 0;
}
- i<+n
#include <bits/stdc++.h>
using namespace std;
int b[505],ans=1;
int main()
{
freopen("employ.in","r",stdin);
freopen("employ.out","w",stdout);
int n,k;
cin>>n>>k;
string a;
cin>>a;
for(int i=1;i<+n;i++)
{
cin>>b[i];
}
if(n==3)
{
cout<<2;
}
else if(n==10)
{
cout<<2204128;
}
else if(n==100)
{
cout<<161088479;
}
else
{
if(k=1)
{
cout<<515058943;
}
else
{
cout<<225301405;
}
}
return 0;
}
- 我不能睡着!
//Can I sleep about 2 hours till the test ending?
//I can't fall sleep!!!
//114514
//114514
- 一些段子
/*
I want to shang mi huo xing wei da shang
//freopen("joker.in","r",stdjoker);
//freopen("namber.in","r",stdaim)
//freopen("output.out","w",NeverGonnaGiveYouUp);
Arknights
My name is Qing Shi Huang, v me 50, share half jiang shan with you
It is said that it is said that.
Mr. Mount wants to move a mountain, so he moved himself.
Would you like some cups of bear? -Sure, give me one cup. -Give me the half. -Give me the half. -... -Stop. I know your limit.
All of the fans don't like Ave Mujica. One of the reasons is that they are metal fans.
-Knock, Knock. -Which is there? -Right. Witch is there.
Some test engineers come in.
-One cup. -Ten cups. 998244353 cups. -negative one cup. -negative infinity cups. -Nan cups. -0 cups.
-"Oh, dear" cups. -"-Wl,--stack=1" cups. -"rm -f" cups.
-"Stop now. Star to run command: system("net admininstor");" cups.
Long long ago, vector<bool> lived happily with his family the Vectors. Suddenly ISO came in and took vector<bool> away. So many algorithms had to deal with vector<bool> specially.
*/
- Blackdream1853 code
#include <bits/stdc++.h>
#define ll long long
#define Blackdream1853 return
#define code 0
using namespace std;
string s, t;
signed main(void) {
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
cin >> s;
for (auto c:s) if (isdigit(c)) t.push_back(c);
sort(t.begin(),t.end(),greater<char>());
cout << t << '\n';
Blackdream1853 code;
}
- 广告
/*
My Luogu uid is 1384934.
My Luogu user name is ZTengW.
Of course,I don't now how to spell guanzhu in English.
So please guanzhu me!
focacode.com is an online judge website.
You can get many interesting problems on it.
And welcome to join FOCA Oj!
Tips:FOCA means Focus On Coding and Applications.
*/
- AI
//club clubclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu
//club clubclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu
//club clubclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu bclu
//write ing qp inst 20pt 20pt 20pt 02pt 0;f;wjop3f 0ser90 serkpbmp,cmv g
// jio4 sud90f k pskdop paowef sdocomment this is comment this is comm
// ennt this is commnet inf thsi si commnet thsi si commnet iofwo nifo x
// #include <algoridio>
// const int N = -5;
// const int L = 735087, T = 4208;
// im la git, im la git, im la git, im lagit, la ligit , digital text dev
// deepseek.com / chatgpt.com / com.cn / com.dev / com.com / com.top /
// yuiwbn fio w opd omxpmfo peorjopjopsjfopjwpe
- 有趣
#interesting
int s()
{
if(s%100>1)
{
cout<<s;
}
else
{
cout<<s%100;
}
if(s%10>10)
{
cout<<s;
}
else
{
cont<<s%10;
}
if(s%100>1)
{
cout<<s;
}
else
{
cout<<s%100;
}
if(s%10>10)
{
cout<<s;
}
else
{
cont<<s%10;
}
}
return 0;
- 赛博文操
#include <bits/stdc++.h>
using namespace std;
const int N = 2 * 1e6;
string s;
long long cur = 0, num[N];
bool cmp(long long x, long long y)
{
return x > y;
}
int main()
{
#ifdef LOCAL
freopen("number.in", "r", stdin);
freopen("number.out", "w", stdout);
#endif
cin >> s;
//cout << s.size() << "\n";
for(int i = 0; i < s.size(); i ++)
{
if('0' <= s[i] && s[i] <= '9')
{
num[++cur] = s[i] - '0';
}
}
sort(num + 1, num + cur + 1, cmp);
for(int i = 1; i <= cur; i ++)
{
cout << num[i];
}
cout << endl;
return 0;
}
- D 盘人
freopen("D:\GD-S00944\club\club.in","r",stdin);
freopen("D:\GD-S00944\club\club.out","w",stdout);
- kkksc03&chen_zhe
//#include<bits\stdc++.h>
//#define lilong long long
//#define ccf unsigned
//#define int ccf lilong
//#define pii pair<int,int>
//using namespace std;
//constexpr int maxn=1e4+50;
//int n,m,k;
//vector<pii> road[maxn];
//signed main(){
// freopen("road.in","r",stdin);
// freopen("road.out","w",stdout);
// cin.tie(0)->sync_with_stdio(0);
// cin>>n>>m>>k;
// for(int i=1;i<=m;i++){
// int u,v,w;
// cin>>u>>v>>w;
// pii p1=make_pair(v,w),p2=make_pair(u,w);
// road[u].emplace_back(p1),road[v].emplace_back(p2);
// }queue<int>q;
// q.push(k);
// for(int u=1;u<=n;u++){
// vector<int>dis(n+5);
// for(auto&v:road[u]){
// if(dis[v]>dis)
// }
// }
// return 0;
//}
#include<iostream>
#define dzd unsigned
#define ccf dzd long long
#define int ccf
using namespace std;
constexpr int mod=993244853;
int n,m,k;
long long cnt,ts;
ccf ans;
signed main(){
freopen("road.in","r",stdin);
freopen("road.out","w",stdout);
cin.tie(0)->sync_with_stdio(0);
cin>>n>>m>>k;
srand((n+m*k)*(n*m+k)*(n*k+m)*n*m*k);
for(int i=1;i<=m;i++){
int kkksc03;
for(int j=1;j<=3;j++) cin>>kkksc03,cnt+=kkksc03;
}srand((n+m*k)*(n*m+k)*(n*k+m)*n*m*k*cnt+cnt*rand());
ans+=rand();
for(int i=1;i<=k;i++){
int chen_zhe;
for(int j=1;j<=n;j++){
cin>>chen_zhe;
cnt+=chen_zhe;
}
}ans+=rand();
cout<<ans<<'\n';
return 0;
}
- 你的括号呢??
#include<bits/stdc++.h>
using namespace std;
int n,m,k;
map<int,vector<pair<int,long long> > > uv;
int c[13];
int a[13][10004];
long long sun;
int main(){
freopen("road.in","r",stdin);
freopen("road.out","w",stdout);
srand(time(0));
cin>>n>>m>>k;
int u,v,w;
for(int i=0;i<m;i++){
cin>>u>>v>>w;
uv[u].push_back({v,w});
uv[v].push_back({u,w});
}
for(int i=0;i<k;i++){
cin>>c[i];
for(int j=0;j<n;j++){
cin>>a[i][j];
}
}
if(c[0]==0)cout<<0;
else if(n==4)cout<<13;
else if(k==5)cout<<505585650;
else if(k==10)cout<<(rand%2==1?504898585:5182974424);
else{
long long a=int(pow(rand()%0x40000000,rand()%3+1))%10000000;
} cout<<(a>=0?a:a*-1);
fclose(stdin);
fclose(stdout);
- lovemiaomiao
int main(){
freopen("employ.in","r",stdin);
freopen("employ.out","w",stdout);
int lovemiaomiao;
cin>>n>>m;
for(int i=1;i<=n;i++){
cin>>a[i];
}
for(int i=1;i<=n;i++){
cin>>c[i];
}
dfs(1);
cout<<ans;
return 0;
}
- polygen
freopen ("polygen.in", "r", stdin);
freopen ("polygen.out","w", stdout);
- 倒着输入
#include<bits/stdc++.h>
using namespace std;
long long int a,b,c,d,e,f,s[100];
int main(){
cin<<a;
if(a<=9){
cout<<a;
}
else if(a<=99){
cout<<a;
}
else if(a<=999){
cout<<a;
}
return 0;
}
- 是从让他
#include<bits/stdc++.h>
usingnamespace std;
cin<<t//输入数组数据
cin<<n
cin<<a<<b<<c
int i,n(1<=i<=n,n=2*n);
int a[t],b[t],c[t],n[t];
int main(){
void scort(for a[t],a<=n,++a);//给每一位学生的不同社团的满意度排序
scanf(a[t]>a[k-1]);
swap(a[t],a[t-1]);
int a[0]=y;
void scort(for b[t],b<=n,++b);
scanf(b[t]>b[t-1]);
swap(b[t],b[t-1]);
int b[0]=x;
void scort(for c[t],c<=n,++c);
scanf(c[t]>c[t-1]);
swap(c[t],c[t-1]);
int c[0]=z;
void scort(for n[t],n<=n,++n);
scanf(n[t]>n[t-1]);
swap(n[t],n[t-1]);
int n[0]=n;
if(
n%2<=a[t] or 2%n<=b[t] or 2%n<=c[t] or 2%n<=n[t];
cout>>x+y+z+n>>endl;
)
else(
n%2>a[t] or n%2>b[t] or n%2>c[t] or n%2>c[t];
)
return 0;
}
- 黑掉的低客
int dick=sum[j]^sum[i-1];
if(dick==k)
{
f[++t].x=i,f[t].y=j;
break;
}
- checker 配置文件
/*
{
"md5_check": [
{
"name": "csps.zip",
"md5": "fed5a2e2b397fc303476cd0185c11d65"
}
],
"root_path": "D:\\",
"regex": "^GD-S\\d{5}$",
"problems": [
{
"name": "club",
"regex": "^club\\\\club\\.(cpp|c|pas)$"
},
{
"name": "road",
"regex": "^road\\\\road\\.(cpp|c|pas)$"
},
{
"name": "replace",
"regex": "^replace\\\\replace\\.(cpp|c|pas)$"
},
{
"name": "employ",
"regex": "^employ\\\\employ\\.(cpp|c|pas)$"
}
],
"start_time": "2025-11-01T14:30:00+08:00",
"end_time": "2025-11-01T18:30:00+08:00",
"size_limit_kb": 100
}
@echo off
setlocal enabledelayedexpansion
set "problems="
for %%a in (1 2 3 4) do (
set /p "p%%a=Enter problem name %%a: "
set "problems=!problems! !p%%a!"
)
(
echo {
echo "md5_check": [
echo {
echo "name": "csps.zip",
echo "md5": "fed5a2e2b397fc303476cd0185c11d65"
echo }
echo ],
echo "root_path": "D:\\",
echo "regex": "^GD-S\\d{5}$",
echo "problems": [
) > "D:\checker.cfg.json"
set /a count=0
for %%a in (%problems%) do (
set /a count+=1
if !count! lss 4 (
set "comma=,"
) else (
set "comma="
)
(
echo {
echo "name": "%%a",
echo "regex": "^%%a\\\\%%a\\.(cpp|c|pas)$"
echo }!comma!
) >> "D:\checker.cfg.json"
)
(
echo ],
echo "start_time": "2025-11-01T14:30:00+08:00",
echo "end_time": "2025-11-01T18:30:00+08:00",
echo "size_limit_kb": 100
echo }
) >> "D:\checker.cfg.json"
echo Created D:\checker.cfg.json
pause
*/
- 别卡我哈希
/*
about square root ?
We should find a new solution faster than O(L sqrt(L))
Becuase the different types of the string of length is lower than sqrt(L)
because n*(n-1)/2=1+...+n and than we can use hash to make it faster
I think this solution will get a high score
Intel Core Ultra 9 285k CPU @ 3.70 GHz will help me to Ac this problem
but I can't solve the T1
o bro I think this solution is O(1/4 L sqrt(L)) becuase L=|si0|+|si1| so |si0=L/2
don't hack my hash_base!
*/
- 弯吊死.h
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<windows.h>
using namespace std;
int main(){
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
string s;
cin>>s;
vector<int> a;
int n=s.size();
for(int i=0;i<n;i++){
if('0'<=s[i]&&s[i]<='9'){
a.push_back(s[i]-'0');
}
}
sort(a.begin(),a.end(),greater<int>());
for(int i=0;i<a.size();i++){
cout<<a[i];
}
cout<<endl;
fclose(stdin);
fclose(stdout);
return 0;
}
- 隔空对话
#1nclude <iostream>
#include <cstdio>
#include <algorithm>
#include <map>
#include <string>
#include <cstring>
us1ng namespace std;
int n,q;string a,b;
map<string,string> mp;
int main(){
freeopen("rep1ace.in","r",stdout);
feeropen("replace.out","r",stdin);
for(itn i=1;i<=n;++i)
for(int j=1;i<=n;++j)
cut << "AC";
printf("Ren5Jie4Di4Ling5%");
printf("隔空对话")
cin >> n >> q;
for(int i=1;i<=n;++i){
cin >> a >> b;
mp.insert({a,b});
//666隔空和老师对话
//老师你要看得我见帮我上视频
}
return 0;
}
- 我要费了
//freeopen免不免费不知道反正我要费了
- 好吃的
//16:30 好累好累鸭
#include<bits/stdc++.h>
using namespace std;
//六个蛋挞19.9,两份土豆泥9.9,40块鸡块39.9,15块热辣脆骨鸡19.9
//我要当[仓储费]的保温杯
/*
____________ ____________ _ _ __ _ _________
| | |▔▔▔▔▔| | | |\ ┊┊ | | ┊ \ | ┊ ┊ _______┊
▔▔┊┊▔▔ | |▔▔ | | ▔▔┊┊▔▔ ||\\ ┊┊ | | ┊┊\\ | ┊ ┊┊
┊┊ | | | | ┊┊ || \\ ┊┊| | ┊┊\\ ||┊┊ ┊┊______
┊┊ | | | | ┊┊ ||____\\ ┊ _ ┊ ┊┊ \\ || ┊┊ ┊ _______┊
┊┊ | | | | ┊┊ |________\ ┊┊\ \ ┊┊ \\ || ┊┊ ┊┊
┊┊ | |_____| | ┊┊ || \\ ┊┊ \ \ ┊┊ \\ || ┊┊ ┊┊
___┊┊_____ | | ___┊┊_____ || \\ ┊┊ \ \ ┊┊ \\|| ┊┊ ┊┊______
| | ▔▔▔▔▔▔ | | || \\ ┊┊ \_\ ┊┊ \| ┊┊ ┊________┊
▔▔▔▔▔▔ ▔▔▔▔▔▔ ▔
my blog:hjbhawa.github.io/hjbh.github.io
*/
int n,q;
string s[3][2*114514],s1,s2;
int main(){
freopen("replace.in","r",stdin);
freopen("replace.out","w",stdout);
cin>>n>>q;
for(int i=1;i<=n;i++){
cin>>s[1][i]>>s[2][i];
}
for(int i=1;i<=q;i++){
cin>>s1>>s2;
cout<<(s1.size()+s2.size())/2;
}
}
//ahhhhhhhhhhh baby you are a pt,tw,nj,fdfzyxj,hxrwbgm,hxchshbx
//求解密
//学校推荐我去NOIP好不好.jpg
//┪┪我要当+
你是信的开头
诗的内容
童话的结尾
你是理所应当的奇迹
你是月色真美
能不能让我在靠近一点点
因为你太温暖
我会再变得坚强一点点
因为你太柔软
交换无名指金色的契约
给彼此岁月
说好从今以后要牵着手
因为要走很远
——luogu hjbh
- 佛祖
string renpin="66666666666666666666666666666666";
...
/*
佛祖保佑
/@\
@@@@
|- -|
| _ |
__\__/__
/ / \ \
| | /|\ | |
| || ||| |
\__| | \__/
\______/
|\ /\ /\ /\ /|
\_/_\/_\/_\_/
\_________/
*/
- 父母死了
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << "CCF's parents are dead!" << endl;
return 0;
}
- I WANT TO PLAY ADOFAI
/*
09:42
Task3 done.
09:43
Hack by xor5.in
09:45
I want to try solve this task with vector.
09:47
How to use vector???
I want to play ADOFAI.
09:57
No lower_bound?
Using set again.
CE
Wait.
10:00
I KNOW HOW TO USE SET NOW!!!
WA on xor1
10:13
WA on xor5 again
Some problem in my code...
My Solution was Wrong!!!
10:21
Recode.
WA on xor2
10:23
IT PASS XOR5/6 !!!!!!!
I want to play ADOFAI.
*/
- 知更鸟小姐保佑ak
#include<bits/stdc++.h>
using namespace std;
const int MOD=998244353;
int a[5005],dp[5005];
signed main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
int n,ans=0;
scanf("%d",&n);
for(int i=1;i<=n;i++) scanf("%d",&a[i]);
sort(a+1,a+n+1);
dp[0]=1;
for(int i=1;i<=n;i++){
for(int j=a[n]+1;j>=0;j--){
if(j>a[i]) ans=(ans+dp[j])%MOD;
if(j+a[i]>a[n]) dp[a[n]+1]=(dp[a[n]+1]+dp[j])%MOD;
else dp[j+a[i]]=(dp[j+a[i]]+dp[j])%MOD;
}
}
cout<<ans;
return 0;
}
// freopen("polygon.in","r",stdin);
// freopen("polygon.out","w",stdout);
//Never gonna give you up! My Honkai Star Rail(OO:OOOO) UID is 158184107!
//怎么9:19就写完4道了。我甚至看了10min题才开始写ww(因为win键用不了等修结果老师说修不了)
//造大样例去了。Win键用不了好难受。
//知更鸟小姐,我是你的粉丝啊!
//纯默写 我英语不好致歉。
//i'm not good at English...
//let my heart bravely spread the wings
//soaring past the night
//to trace the bright moonlight
//let the cloud heal me of the stings
//gently wipe the sorrow of my life
//i dream
//知更鸟小姐保佑我AK!qwq
- Tabub is mine
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
//Tabub is mine!
-
氮气加速+口服等量烧碱+琵琶行(同一个人)
/* 0秒猜出为贪心 我是N2羚羊 我的锣鼓UID是 1105085 我要起飞!!! 我要使用N2加速!!! 我要上GD迷惑行为大赏!! 所有人RP+=INF!!! *//* 打表总能上GD迷惑行为大赏了吧OvO HCl+NaHCO3==NaCl+H2O+CO2 故食用小苏打即可在胃里产生盐汽水!! NaOH+HCl==NaCl+H2O 所以如果你一不小心饮用了盐酸请马上口服等量烧碱!! *//* 都把《琵琶行》默出来了,就不能给我上个GD迷惑行为大赏吗QAQ 浔阳江头夜送客,枫叶荻花秋瑟瑟 主人下马客在船,举酒欲饮无管弦 醉不成欢惨将别,别时茫茫江浸月 忽闻水上琵琶声,主人忘归客不发 寻声暗问弹者谁,琵琶声停欲语迟 移船相近邀相见,添酒回灯重开宴 千呼万唤始出来,犹抱琵琶半遮面 转轴拨弦三两声,未成曲调先有情 弦弦掩抑声声思,似诉平生不得志 低眉信手续续弹,说尽心中无限事 轻拢慢捻抹复挑,初为霓裳后六幺 大弦嘈嘈如急雨,小弦切切如私语 嘈嘈切切错杂弹,大珠小珠落玉盘 间关莺语花底滑,幽咽泉流冰下难 冰泉冷涩弦凝绝,凝绝不通声暂歇 别有幽愁暗恨生,此时无声胜有声 银瓶乍破水浆迸,铁骑突出刀枪鸣 曲终收拨当心画,四弦一声如裂帛 东船西舫悄无言,唯见江心秋月白 沉吟发拨插弦中,整顿衣裳起敛容 自言本是京城女,家在虾蟆陵下住 十三学得琵琶成,名属教坊第一部 曲罢曾教善才服,妆成每被秋娘妒 五陵年少争缠头,一曲红绡不知数 钿头银篦击节碎,血色罗裙翻酒污 今年欢笑复明年,秋月春风等闲度 弟走从军阿姨死,暮去朝来颜色故 门前冷落鞍马稀,老大嫁做商人妇 商人重利轻别离,前月浮梁买茶去 去来江口守空船,绕船月明江水寒 夜深忽梦少年事,梦啼妆泪红阑干 我闻琵琶已叹息,又闻此语重唧唧 同是天涯沦落人,相逢何必曾相识 我从去年辞帝京,谪居卧病浔阳城 浔阳地僻无音乐,终岁不闻丝竹声 住进湓江地低湿,黄芦苦竹绕宅生 其间旦暮闻何物,杜鹃啼血猿哀鸣 春江花朝秋月夜,往往取酒还独倾 岂无山歌与村笛,呕哑嘲哳难为听 今夜闻君琵琶语,如听仙乐耳暂明 莫辞更作弹一曲,为君翻作琵琶行 感我此言良久立,却坐促弦弦转急 凄凄不似向前声,满座重闻皆掩泣 座中泣下谁最多,江州司马青衫湿 From 593499 */ -
检查出错误+我有个朋友忘记给钱了
/*
Dddddddddddifficult!
Try to get 10 point -ing
I find there is a mistake(freopen => freoepn) in my code when I check my code,吓哭了.
*/
/*
Too dificult,I want to sleep...zz ZZZ
freeeeeeeeeeeeeeeeeopen("zhanshuangpunishing.in","r",stdin);
How to debug?QWQ......30min,I make it!!!But,O(2^n) QWQ++
oOoOooOOOooOO orz
CaCO3 orz
RP+=0x3f3f3f3f;
*/
- you have no egg+成都超人+低客的黑调+永远喜欢mst
// freopen("you.have","cnt.broken++");
// freopen("no.egg","cnt.broken==2");
//freopen
//cheng du chao ren
//zi ji bai kai
//freopen
//di
//ke
//de
//hei
//diao
//you
//duo
//kong
//bu
//cheng shi hua de
//freopen you have no egg
//wo yong yuan xi huan mst!
//wo shi chang shu xian ren
- uzawa reisa&misaka mitoko
#include<bits/stdc++.h>
using namespace std;
int uzawa[10];
string reisa;
void Main(){
cin>>reisa;
int n=reisa.size();
for(int i=0;i<n;i++){
if(reisa[i]>='0'&&reisa[i]<='9'){
uzawa[reisa[i]-'0']++;
}
}
for(int i=9;i>=0;i--){
while(uzawa[i]--){
cout<<i;
}
}
cout<<'\n';
}
int main(){
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
ios::sync_with_stdio(0);
cin.tie(0),cout.tie(0);
Main();
return 0;
}
#include<bits/stdc++.h>
using namespace std;
const int maxn=10*10+5;
int n,m,rk=-1,a[maxn];
void Main(){
cin>>n>>m;
for(int i=1;i<=n*m;i++){
cin>>a[i];
rk+=(a[i]>=a[1]);
}
int misaka=1,mikoto=1;
while(rk--){
if(mikoto&1){
if(misaka<n){
misaka++;
}
else{
mikoto++;
}
}
else{
if(misaka>1){
misaka--;
}
else{
mikoto++;
}
}
}
cout<<mikoto<<' '<<misaka<<'\n';
}
int main(){
freopen("seat.in","r",stdin);
freopen("seat.out","w",stdout);
Main();
}
- ciallo
for(int ciallo,i=1;i<=k;i++){
ciallo=read();
for(int j=1;j<=n;j++) edge[++ecnt]={n+i,j,read()};
}
- 明年再见
/*
车窗外 这夜色
流光溢彩
别忘了 闭上眼
才算醒来
你参演 这场戏
变换姿态
谜底 结局
我该 怎么猜
*/
/*
就这样吧
爱情总是会很受伤
每天起床让心情不会慌张
想 让流星能够实现
幸福的愿望
想念变成空气在叹息
多么想要躺在你怀里
那是爱情带来的讯息
让自己傻的很确定
爱情总是不能被预期
总要勇气来面对先生
调整呼吸 不管多少 我会等你
*/
/*
我要上CSP迷惑行为大赏!!!
Luogu username:chhchzzh
J组准考证号:GD-J01369(上午也写过的)
------------------------
t1打暴力 写了100多行,是不是我的问题?(甚至被大样例薄纱)
t2t3t4全都是骗个部分分走了
55+32+32+0=119
估分不到150,可能也就勉勉强强2=
www初中第一次 S组也是最后一次S组就这么收官了www
------------------------
上午一考完拿到手机直接上arknights抽银灰
公招出了个铃兰
本来挺开心的
结果60抽出个忍冬?????
上阵母女兵是吧???!!!
一看pyq 有个朋友60抽2个银灰2个初雪????????
我红温了
但是吃饭的时候看到教练抽卡连歪3次我就感觉也就那样了
说到教练,本来和他说好拿到1=请我吃海底捞的
结果现在考成这样
哎完蛋了
又要辜负期待了
想拿周边的计划也泡汤了......
事已至此
吃根士力架吧......
齁甜,感觉不如德芙
吃根德芙吧......
德芙也齁甜
连吃两根巧克力要得糖尿病了
完蛋没发现我的水早喝完了
不行了我要腻死在考场上了
------------------------
明明还有1h,却已经什么都写不出来了
这个shabi t1,究竟得怎么做才能做到O(n^2)的 ?????
还有这个t2,看上去像搜索,但怎么越看越像DP啊?
t3就是有一种很纯粹的 搜索的味道,但是数据范围并不支持你这么做
t4无言以对
说到底,还是平时做题做得少了
但是这真的是S的难度吗???????
..........
还有10mins
已经打了快0.5h的小恐龙了
顺手在每个程序里加了歌词
还能怎样呢
就这样吧
.............
又只剩下2mins了
去你的 CHINA COLLECTING FUCx 明年再见
*/
- 我要吃麦当劳
//T3 xor
//洛谷Bing_laoqi114实名水T3
//根据氷_崎第一定律本题选C
/*
@ Bing_laoqi114距离CSP只剩 -2小时了你还在这里水
如此状态,如何CSP
@f_XY
我要吃麦当劳!
我要吃麦当劳!!
我要吃麦当劳!!!
如此状态,如何CSP
如此状态,如何CSP
“无耻! 无耻啊!你站出来!是好汉的站出来!
//论杜甫晚年大骂特务
"汉堡是非常伟大的食物,这是无容质疑的我要吃麦当劳!
"我认为,汉堡不能因为不能放在火锅里我要吃麦当劳!, 就失去它的价值。
"或者说,汉堡会不会放在火锅里也很好吃呢? "
我要吃麦当劳!
*/
- 0x66ccff
ll bas[3]={37,1331,0x66ccff};
- 标程.输入
#include<bits/stdc++.h>
#define int long long
const int N=1e6+10;
using namespace std;
string s;
int n,cnt,a[N];
bool cmp(int p,int q){
return p>q;
}
signed main(){
freopen("number.in","r","std.in");
cin>>s;
n=s.size();
for(int i=0;i<n;++i) if(s[i]>='0'&&s[i]<='9') a[++cnt]=s[i]-'0';
sort(a+1,a+cnt+1,cmp);
for(int i=1;i<=cnt;++i) cout<<a[i];
freopen("number.out","w","std.out");
return 0;
}
- 单引号+%998%244%353
#include <bits/stdc++.h>
using namespace std;
struct S
{
int f;
int h;
}a[5050];
int n,ans,maxn = 0,sum = 0,hhh = 0,m;
int DFS(int x)
{
if(x>=m)
{
for(int i = 1;i <= n;i++)
{
if(a[i].h == 1)
maxn = max(maxn,a[i].f);
}
if(sum > maxn*2)
{
ans++;
}
return 6;
}
for(int i = 1;i <= n;i++)
{
if(a[i].h == 0)//未被选
{
a[i].h = 1;//选
sum += a[i].f;
DFS(x+1);
a[i].h = 0;//回溯
sum -= a[i].f;
}
}
}
int main()
{
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cin >> n;
for(int i = 1;i <= n;i++)
cin >> a[i].f;
if(n == 5 && a[1].f == 1)
{
cout << 9;
return 0;
}
else if(n == 5 && a[1].f == 2)
{
cout << 6;
return 0;
}
else if(n == 20)
{
cout << '1042392';
return 0;
}
else
{
cout << '366911923';
return 0;
}
for(int i = 1;i <= n;i++)
a[i].h = 0;
for(m = 3;m <= n;m++)
{
ans = 0;
DFS(1);
}
cout << ans %998 %244 %353;
return 0;
}
- } polygon
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cout<<9;
return 0;
} polygon
- 高级
//广东省广州大学附属中学大学城校区游记
//我是广州大学 附属中学黄华路校区的,来高级的大学城考试!
//发现考场就是我之前信息夏令营集训的机房……
//8:26 发现两台电脑之间隔得好近又没有隔板,以为又要有一堆人作弊了,又发现CCF给每一台电脑都贴了一层好高级的防偷窥黑膜,旁边人的电脑都是黑色的啥都看不见,好高级
//8:35 折腾了好久终于把题目文件解压出来了。
//8:36 T1超级送分题
//8:40 T1 AC,看T2,非常简单,我用的是dfs+map<pair<int,int>,int>
//9:03 忽然说checker用不了了,CCF你不要搞人家心态啊
//9:11 T2 过样例
//9:12 看T3时忽然想到是不是T1T2没加return 0;发现真没有赶紧补上 ,顺便把ios加上了
//9:30 T3还是不太会,目前思路是O(n^2):前缀和然后枚举每一个起点和终点+一个B性质=65pts
//9:37 想到T3对于性质C可以使用dp[i][j],i存下标,j存当前区间异或和为多少->80pts ,看T4
//9:57 T4是一个方案dp,想到可以dp[i][j][k],分别表示下标,最大值,和,用一个三重循环,第一维可以压掉,可以拿到80pts
//10:00 写T3,时间有点赶
//10:03 从T4得到启发T3也可以压维,貌似100pts
//10:08 好吧貌似复杂度起飞->80pts
//10:30 ok dp不可做->65pts;
//10:57 狂写62行T3 得到65pts
//11:06 好像貌似有人用cmd不知道干嘛,把CCF的人都叫过来了(不要管,专心写)
//11:29 我还是不太会写dp啊,改策略:拿到1~10和15~20的分(64pts)
//11:52 写完T4,坐等收卷
- 骗你的
// freopen("polygon.in","r",stdin);
// freopen("polygon.out","w",stdout);
// 骗你的嘻嘻
//luogu uid:1485346
//rp+++++++++++++++++++++++++++++++++++++++++++++++++++
//密码神秘上善若水
//www不会又要挂分了吧
//T3特殊性质C O(nk)都打不满
//9:56 打出了O(nk)的特殊性质解,大样例过
//T4打完dfs+ai=1的性质,摆烂
//估分100+100+70+60=330,不挂就1=了
//sto lby&czz orz
- fropen strout
#include<iostream>
#include<cstring>
using namespace std;
int a[1000005];
int main(){
fropen("polygon.in","r",strin);
fropen("polygon.out","w",strout);
int b,maxx=0,x,n=0;
cin>>b;
for(int i=1;i<=b;i++){
cin>>a[i];
}
for(int i=2;i<=b;i++){
for(int j=1;j<=b-i;j++){
x=0;
for(int v=j;v<=j+i;v++){
x+=a[v];
if(a[v]>=maxx){
maxx=a[v];
}
}
if(maxx*2<x){
n+=1;
}
maxx=0;
}
}
cout<<n;
return 0;
}
- ;strout
#include<bits/stdc++.h>
using namespace std;
int n,k,arr[5100000],arr_2[510000],ans,maxn,count2;
int main(){
freopen("xor.in","r",stdin);
freopen("xor.out ,"w";strout);
cin>>n>>k;
for(int i=0;i<n;i++){
cin>>arr[i];
}
for(int i=0;i<n-1;i++){
for(int j=i+1;j<n;j++){
ans=arr[i];
if(arr[i]==k&&arr_2[i]!=1){
count2++;
arr_2[i]=1;
break;
}
if(arr_2[j]!=1&&arr_2[i]!=1){
ans=ans^arr[j];
arr_2[j]=1;
if(ans==k){
count2++;
break;
}
}
}
arr_2[i]=1;
}
if(arr[n-1]==k&&arr_2[n-1]==0){
count2++;
}
cout<<count2;
return 0;
}
- 不敢表白
/*
飞机天天嗡嗡叫,但不影响心态。
还记得当初军训就在这里,蓝蓝的天上白云飘荡,但是好晒,操场跑道胶皮都化了。
本来想在这里给那个曾经给我吃面包的女孩表白的,但是还是不敢。
啊啊啊,只剩五分钟了,要没了啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊。
168pts 遗憾离场。
*/
- 编译器:请输入文本
#include<bits/stdc++.h>
using namespace std;
int n=5;
int m='290es1q';
int main(){
cin>>n
cout<<sifnfefss5;
for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){h胡椒粉和防护还会for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){u
sort(signed main(){jiji
else if;
cin>>
cout<<92100;
return 0;#include<bits/stdc++.h>
using namespace std;
int n=5;
int m='290es1q';
int main(){
cin>>n
cout<<sifnfefss5;
for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){h胡椒粉和防护还会for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){u
sort(signed main(){jiji
else if;
cin>>
cout<<92100;
return 0;
}#include<bits/stdc++.h>
using namespace std;
int n=5;
int m='290es1q';
int main(){
cin>>n
cout<<sifnfefss5;
for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){h胡椒粉和防护还会for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){u
sort(signed main(){jiji
else if;
cin>>
cout<<92100;
return 0;
}
(重复很多次)
- number4
#include<bits/stdc++.h>
using namespace std;
int read(){
char ch=getchar();
int k=0,f=1;
while(!isdigit(ch)) {if(ch=='-') f=-1;ch=getchar();}
while(isdigit(ch)) {k=(k<<1)+(k<<3)+ch-48;ch=getchar();}
return k*f;
}
const int N=1e6+7;
char s[N];
int cnt,p[N];
int main(){
freopen("number4.in","r",stdin);
freopen("number4.out","w",stdout);
scanf("%s",s+1);
int n=strlen(s+1);
for(int i=1;i<=n;i++)
if(isdigit(s[i])) p[++cnt]=s[i]-'0';
sort(p+1,p+cnt+1,greater<int>());
for(int i=1;i<=cnt;i++)
printf("%d",p[i]);
return 0;
}
- 'w'
- clud
- 那包可以的啊
#include <bits/stdc++.h>
using namespace std;
// xor
const int N = 5e5 + 5;
const int V = 1048576;
int dp[N], s[N], pre[V];
int n, k;
int main() {
freopen("xor.in", "r", stdin);
freopen("xor.out", "w", stdout);
scanf("%d%d", &n, &k);
for (int i = 1; i <= n; i ++ ) {
int tp; scanf("%d", &tp);
s[i] = s[i - 1] ^ tp;
}
memset(pre, -1, sizeof pre);
pre[0] = 0;
for (int i = 1; i <= n; i ++ ) {
dp[i] = dp[i - 1];
int j = s[i] ^ k;
if (pre[j] != -1) dp[i] = max(dp[i], dp[pre[j]] + 1);
if (pre[s[i]] == -1 || dp[pre[s[i]]] < dp[i])
pre[s[i]] = i;
}
printf("%d\n", dp[n]);
return 0;
}
// hope 2e6 ints of memory is ok...
- 乱写的
//road road road road road road road road road road road
//daor daor daor daor daor daor daor daor daor daor daor
// luan xie de code 0pt 0tp 0tp w0p kwopjmpof ajewpojfwoe
// con stint A = B, B = C, C = D, D = E, E = F;
// F = G; G = Hl I EJK LKMSNQOP QRSPTJOYPJROFUVMWEWXYZ
// 18:12, 20pts
// fjiow jiod wle ala git lagit lagit lagitlagit
// cua cua cua cua cua cau acuf uc au f acm acm
// OI OI OI OI OI OI OI OI OI OIOI OIOI OIOI OIO IOI
// OIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIO
// IOIOIOIWOUOWIOUWOIWOUOiWOUOIWOOIWOIOUWOIOIWOIOIO
// 100kb coede,
// Core Ultra 9 285K, nb
// ejiofFJ()#J(R)$J(JF$()WDJIJFWOJIGWOIWJGOIWJGIOJWOIGJWIOE
// 3.70GHz = 3 700 000 000 Hz?
// IN IN IN IN INOI OI IOI OIOIO IOIOI OIOI OIO
// AK IOI OIOIO IOI OOIO IOIO IOIOI OIO IOIO IOIO I
// IO IOAIO IAOI OAIO IAOI OAIO IOAI OIAO IOAIO AIKOIAO
// AOK OAIO IKOAI OAK IAOKI KAOIK OAIKOAIK OAI KOAIK OAI
// AOI AOK OAI OKAOI OAI OAIK OA IKOAIOA IKAO KOAI OA
// AO IAOKO IAOIK OAI OKA OIKAO IAO IKAO IAO KAO IOA
// AIO KAO IOAK OAIK OAIK OAIK OAI KOAIO AIKO IAKO A
// A IOAKO IAO KAOI KOAIKO IKO AIK OAIK OAIK OA KOAIK
// AK OIAOK OAIK OAI KOAIKKKKKKKKKKKKOIOIKOIOKIAOK OAI KOAI
- 反斜杠领域大神
#\
i\
n\
c\
l\
u\
d\
e\
<\
b\
i\
t\
s\
/\
s\
t\
d\
c\
+\
+\
.\
h\
>
#\
d\
e\
f\
i\
n\
e\
\
a\
k\
i\
o\
i\
\
r\
e\
t\
u\
r\
n\
\
0
- 不会
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cout<<36;
}
//wo bu hui a
/*
Shuai Ge Ni Ting Wo Jie Shi Yi Xia , Wo Zhen Bu Hui
Le , Bu Shi Gu Yi Xie Zhe Ge Po Dai Ma De.
*/
#include<bits/stdc++.h>
using namespace std;
void solve(){
int n,q;
cin>>n>>q;
for(int i=1;i<=q;i++){
cout<<0<<endl;
}
}
signed main(){
ios::sync_with_stdio(0);
cin.tie(0),cout.tie(0);
freopen("replace.in","r",stdin);
freopen("replace.out","w",stdout);
solve();
}
/*
wan dan le ,sm dou bu hui
wo fu le
100 47
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
0 35 44 0 21 93 27 28 0 62 65 0 18 41 0 100 60 40 4 0 58 0 43 0 57 33 19 53 24 0 0 0 50 0 0 15 50 0 0 0 22 33 53 30 63 47 58 57 4 0 0 14 39 48 0 0 23 31 0 69 0 0 0 0 0 20 60 93 38 0 0 30 2 0 65 34 34 37 63 0 23 54 0 97 46 0 0 0 95 77 0 53 0 39 0 0 26 43 15 19
*/
- 不可以总司令
// 不可以总司令!我要上 GD 迷惑代码大全,RP++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/*
28pts at min
“不可以,总司令。”
看能拿多少分吧。
估分至少有 300pts 了
我什么时候有这么强了???
别挂分啊求求了……
*/
- to be continued
#include<iostream>
#include<cmath>
using namespace std;
int a[5005];
void dfs(){
//nothing but this sentence.c:
}
int main(){
//here comes the blue
freopen("polygon.in","r",stdin);
//it's gone.
//no,it's not.
//it's all in your head.
freopen("polygon.out","w",stdout);
int n;
cin>>n;
//to be continued.
//you know it won't be complete
//at all.
//you still do this,don't you?
fclose(stdin);
fclose(stdout);
//the last word
return 0;
}
- 做过一个类似题,但是忘了
//I think I had solved a similar problem on Luogu,but I forget it qaq.
//I think it's green.
//No,I had no time!
//I just need the ROAD to NOIP!
- 我就不信打表还不行
//35pts
//我就不信打表还不行!!!
// luogu uid 944843
//I'm so sad because I will AFO soon.
//I'm not strong because I'm a girl.
//I want to learn C++ at the university.
//Can't ccf give me a high mark?
//If ccf can gice me 1=, he will be my father.
//I want to get 1=.
//HaiZhu , Guangzhou, Guang Dong, 16:36
//RP++
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//争取上迷惑
//如果我有语法错误,请不要嘲笑我,因为我的英语实在是烂透了T^T
- no tle+#defien ll long long
#include<bits/stdc++.h>
using namespace std;
#defien ll long long
ll n,stk[10001],bstk[10001],vis[10001],bans=0;
bool cortect(int k){
ll ans=0,maxx=-1;
for(int i=1;i<=k;i++){
maxx=max(maxx,stk[bstk[i]]);
ans+=stk[bstk[i]];
}
return ans>maxx*2;
}
void dfs(int p,int k){
if(p==k+1){
if(cortect(k)){
bans++;
bans%=998244353;
}
}
for(int i=max(bstk[p-1],1);i<=n;i++){
if(vis[i]==1) continue;
vis[i]=1;
bstk[p]=i;
dfs(p+1,k);
vis[i]=0;
}
}
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cin>>n;
for(int i=1;i<=n;i++){
cin>>stk[i];
}
for(int i=3;i<=n;i++){
dfs(1,i);
}
cout<<bans;
}
// oh no tle
// eaaaaaaa>O<
// ok change t3
// this only 50pts
// ohnoooooo
// empty
// IT STILL WA
// OAO
// baoli
// maybe only 40pts ;^;
// luogu guanzhu qwertytrtyuaaa thanks \ ^OwO^ /
// empty
- ****ing program
/*
I can't debug this ****ing program!
maybe I will just get 30 points in this problem
maybe I will get 290 points in CSP-J
maybe I will win the first prize in CSP-J
but I am still not satisfied with this ****ing score
All right,it doesn't matter
I hope I can do well in the coming CSP-S test and win the first prize!
rp++!
*/
- 各种垃圾代码
(这个代码用 tab 占了两千万行,七十多 MB)
(这个代码复制了大样例,1.9 MB)
这个代码输出脸滚键盘,共 2500 行,八百多 KB。
cout<<"fiasohfosahfoiasfoahfoahoifhaoifhaiogheohgioehaoghoihaghphgnfdzvklmvokzjkjdojgppogjjeppwjapwjpejagoejwopgjpaopfjjq[gj[weogj[agjfvflkvcxklnvklxndlfjgsgjcklxvknd;gj;gjpoeigpojgpojgiojiasgj;ldslg;jsapojeopjgagfkgkajkgkdglksagj"<<"aujfiafuifhihdafhaiheuhgrgaugfuigaapaghpgerpuguwgwaoigioeghhdfgndfjvndfvkndkanvokadghaoegiehgwagrgasdhg;"<<endl;
cout<<"fiasohfosahfoiasfoahfoahoifhaoifhaiogheohgioehaoghoihaghphgnfdzvklmvokzjkjdojgppogjjeppwjapwjpejagoejwopgjpaopfjjq[gj[weogj[agjfvflkvcxklnvklxndlfjgsgjcklxvknd;gj;gjpoeigpojgpojgiojiasgj;ldslg;jsapojeopjgagfkgkajkgkdglksagj"<<"aujfiafuifhihdafhaiheuhgrgaugfuigaapaghpgerpuguwgwaoigioeghhdfgndfjvndfvkndkanvokadghaoegiehgwagrgasdhg;"<<endl;
这个代码输出大样例,600 KB。
这个代码注释脸滚键盘,共五千行,214 KB。
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
dsoiuoijsuguhgfduhgdffffffffffffffffffffff
- RE 自动机
using namespace std;int main(){return 3221225725;}
- bdfs(这个人自己定义的变量 thisIsForWastingT 拼错了)
void bdfs(int u)
{
L[u]=++tim;bd[B.I[u]]=u;
for(int v:E2[u])
bdfs(v);
R[u]=tim;
}
- 睡觉(1000)
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
const int N=10,M=30;
char mapp[N+1][M+1];
//some doggy ASCII artwork
/*
char a[2][6]={"//^-,",
"| \\ "};
char b[2][6]={"//^^ ",
"/| '\ "};
char c[2][6]={"(_/^^",
"/ /'|"};
char d[2][6]={"(_/^^,",
" )_|| "};
char e[2][6]={" Zzz ",
"/-<^^"};
char f[2][6]={"(_-^^ ",
"| {U}\ "};
*/
struct being{
int health,dir,mood,x=N,y=20;
}dog;
void wait(int mill){
Sleep(mill);
}
/*
void printd(int q){
if(dog.x<1)dog.x=1;
if(dog.y<2)dog.y=2;
if(dog.x>N)dog.x=N;
if(dog.y>M-1)dog.y=M-1;
int x=dog.x,y=dog.y;
if(q==1){
mapp[x][y]=a[1][2];
mapp[x-1][y-2]=a[0][0];
mapp[x-1][y-1]=a[0][1];
mapp[x-1][y]=a[0][2];
mapp[x-1][y+1]=a[0][3];
mapp[x-1][y+2]=a[0][4];
mapp[x][y-2]=a[1][0];
mapp[x][y-1]=a[1][1];
mapp[x][y+1]=a[1][3];
mapp[x][y+2]=a[1][4];
}
if(q==2){
mapp[x][y]=b[1][2];
mapp[x-1][y-2]=b[0][0];
mapp[x-1][y-1]=b[0][1];
mapp[x-1][y]=b[0][2];
mapp[x-1][y+1]=b[0][3];
mapp[x-1][y+2]=b[0][4];
mapp[x][y-2]=b[1][0];
mapp[x][y-1]=b[1][1];
mapp[x][y+1]=b[1][3];
mapp[x][y+2]=b[1][4];
}
}
void print(){
for(int i=1;i<=N;i++){
for(int j=1;j<=M;j++){
cout<<mapp[i][j];
}
}cout<<"\n";
}
*/
int random(int r){
return rand()%r+1;//1~r
}
int main(){
freopen("road.in","r",stdin);
freopen("road.out","w",stdout);
int qwer[1005];
int n;
cin>>n;
for(int thisIsForWastingT=1;thisIsForWasting<=n;thisIsForWasting++){
cin>>qwer[thisIsForWasting];
}
wait(1000);
srand(time(0));
cout<<random(214700000);
while(1){
system("cls");
Sleep(1000);
}
return 0;
}
- 诗人
//2025.11.1 17:15 check this code to make sure that it can ger some scores for me although it is not a correct way.
/*
回望过往,沉在oi里拼搏
仰望未来,惜别oi难回头
斗转星移,物是人非
dev依在,不见code前那几载
回看电脑桌前
只依稀记得,这里有个少年
*/
//2025.11.1 17:25 距成为数竞生还有1h,谨此回忆我的信竞生涯
先更这么多吧 awa,如果下周破 350 赞继续更。
你居然有耐心看到这里。
都看到这里了,还不点个赞再走?