迷惑行为?!(ZJ-S组)
说明
本文按照考号顺序递增,按照考号分组,但完全作者手写,作者甚至不会用VScode,VScode唯一用处是查看UTF-8编码。
本次考试ZJ共有2169人参加,但是我随手一点点到一个只交了crystal的。
根据抽象程度上升:info<success<warning<error。
建议阅读所有错误框,忽略大部分提示框(我自己高兴看),成功与警告两种框自由选择。
千万不要打开过多折叠框!内存条。
正文
ZJ-S00001~ZJ-S00100
ZJ-S00001
subway.cpp
int main() {
freopen("subway.in","r",stdin);
freopen("subway.out","w",stdout);
ios::sync_with_stdio(0);
cin.tie(0);
memset(dis,MAX,sizeof(dis));
cin>>c>>n>>m>>d>>q;
// for(int i=1; i<=m; i++)
// cin>>w[i];
// for(int i=1; i<=n; i++) {
// cin>>k;
// while(k--) {
// cin>>a>>t;
// belto[a].push_back(i);
// lines[i].push_back(a);
// linetime[i].push_back(t);
// }
// }
// for(int i=1; i<=n; i++)
// bfs(i);
// while(q--) {
// cin>>x>>y;
// cout<<query(x,y)+w[x]+w[y]<<"\n";
// }
if(n==2)cout<<"32\n17";
else cout<<"35\n16";
return 0;
}main 函数全部内容,骗分来的。
hub.cpp 为空
ZJ-S00002
crystal.cpp
while(a[r]*(r-l+1)-sum[r]+sum[l-1]>m&&l<=r)
{
l++;
nums=max(nums,r-l+1);
}你都知道超过范围了还取 ?
migrate.cpp
for(int i=2;i<=n;i++)
{
if(a[i]-a[i-1]>d)
{
cout<<0<<'\n';
return;
}
}这是何意?真看题了吗?
subway.cpp
for(int i=1;i<=n;i++)
{
int v=lid[0][j].a;
for(int j=1;j<k[i];j++)
{
int u=lid[i][j].a;
int t=lid[i][j].t;
if(tot[u]<2)
{
}
}
}未完待续+全文未开ll。
ZJ-S00003
crystal.cpp
int fuck[500050];你别这样我害怕。
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
while(true){
// fuckccf
putchar('f');
putchar('u');
putchar('c');
putchar('k');
putchar('c');
putchar('c');
putchar('f');
}
}哦不不不这是取消成绩的。
migrate.cpp
freopen("migrate4.in", "r", stdin);
freopen("migrate.out", "w", stdout);文件错误+1。
另外,他底下的注释全是PdLZQo1ZOs==这个串,这是什么?
subway.cpp
// @grassblockeggs i'm doing csp-s
// @zhangfanfan you are sliverfish你@人干什么。
// i wanna to cry
// but the problem is squared the sum of e and z minus the sum of squared e and squared z~~~
// let's counting star
// ok it may tle
// i need to ... no! i not do oxygen 2!!!!
// 0.6565ms!!! right!!!激动之情溢于言表,但暴戾。
ZJ-S00004
crystal.cpp
#include <bits/stdc++.h>
using namespace std;
int n,m;T1喜提60pts。
hub.cpp
#include <bits/stdc++.h>
using namespace std;
int ot,t,n,k;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cin>>ot>>t;
while(t--){
cin>>n>>k;
for(int i=1;i<=(n-1)*2;i++){
int x;
cin>>x;
}
if(n==k) cout<<"0\n";
else cout<<"1\n";
}
return 0;
}
/*
recall(ing...)
(v_v)
256- can`t 1=
no //freopen("crystal.in","r",stdin);!!!
*/追忆?!但是底下有诈骗。
migrate.cpp
if(i>2&&a[i]-a[i-1]!=a[i-1]-a[i-2]) A=false;所以你把测试点号当啥了。
ZJ-S00005
subway.cpp
priority_queue<pair<long long ,int> >pq;
void dij(int x) {
......
}CCF把n遍dij放过去了,你让我floyd kij选手情何以堪。
ZJ-S00006
subway.cpp
for(int k = 1; k <= n; k++){
int i = 1;
while(i <= n){
int j = 1;
while(j <= n){
if(dis[i][j] > dis[i][k] + dis[k][j]){
dis[i][j] = dis[i][k] + dis[k][j];
}
j++;
if(dis[i][j] > dis[i][k] + dis[k][j]){
dis[i][j] = dis[i][k] + dis[k][j];
}
j++;
if(dis[i][j] > dis[i][k] + dis[k][j]){
dis[i][j] = dis[i][k] + dis[k][j];
}
j++;
if(dis[i][j] > dis[i][k] + dis[k][j]){
dis[i][j] = dis[i][k] + dis[k][j];
}
j++;
if(dis[i][j] > dis[i][k] + dis[k][j]){
dis[i][j] = dis[i][k] + dis[k][j];
}
j++;
if(dis[i][j] > dis[i][k] + dis[k][j]){
dis[i][j] = dis[i][k] + dis[k][j];
}
j++;
if(dis[i][j] > dis[i][k] + dis[k][j]){
dis[i][j] = dis[i][k] + dis[k][j];
}
j++;
if(dis[i][j] > dis[i][k] + dis[k][j]){
dis[i][j] = dis[i][k] + dis[k][j];
}
j++;
}
i++;
}
// for(int i = 1; i <= n; i++){
// for(int j = 1; j <= n; j++){
//// dis[i][j] = min(dis[i][j], dis[i][k] + dis[k][j]);
// if(dis[i][j] > dis[i][k] + dis[k][j]){
// dis[i][j] = dis[i][k] + dis[k][j];
// }
// }
// }
}你在写什么?floyd不是这样的!
ZJ-S00009
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
/*
hello world!
我常常追忆过去!
杭师大好大!
*/
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(nullptr);
int c,t;
cin>>c>>t;
while(t--){
cout<<0<<endl;
}
return 0;
}对的对的,怎么这样分比我高?!追忆牛逼。
subway.cpp
vector<vector<int> > g(10086,vector<int>(10086,-1));注意这是距离数组,放那么大,但竟然没MLE。
for(int i=1;i<=n;i++){
g[i][i]=0;
int k;
cin>>k;
a[i].push_back(0);
t[i].push_back(0);
for(int j=1;j<=k;j++){
int aa,tt;
cin>>aa>>tt;
a[i].push_back(aa);
t[i].push_back(tt);
}
}
while(q--){
int x,y;
cin>>x>>y;
cout<<w[x]+t[x][x]+t[x][y]+w[y]<<endl;
}原来没写完,那没事了 怎么冲过去一车分?!
ZJ-S00011
ZJ-S00012
subway.cpp
for(int i=1;i<=n;i++){
for(int j=i+1;j<=n;j++){
zj[i][j]=inf;
for(int k=1;k<=m;k++){
if(mp[i][k]&&mp[j][k]){
zj[i][j]=min(zj[i][j],mp[i][k]+mp[j][k]);
}
}
zj[j][i]=zj[i][j];
}
}
for(int x=1;x<=n;x++){
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++){
zj[i][j]=min(zj[i][j],zj[i][x]+zj[x][j]);
}
}
}分不要了可以给我,明明会写floyd。
ZJ-S00014
crystal.cpp
void twopoints(){
......
}哥们这个双指针叫two-pointers。
hub.cpp
#include <bits/stdc++.h>
using namespace std;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0);
int t,opt;
cin>>opt>>t;
while(t--){
cout<<rand()%100<<endl;
}
return 0;
}真就随机了呗。我23年就是这样对待 种树 的。
migrate.cpp
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0);
int t,opt;
cin>>opt>>t;
while(t--){
cout<<0<<endl;
}
return 0;
}一门双至尊。
subway.cpp
for(int i=1;i<=m;++i){
pq.push({0,i});
dis[i][i]=0;
while(!pq.empty()){
auto [l,u]=pq.top();
pq.pop();
if(vis[i][u]) continue;
vis[i][u]=1;
for(auto [v,w]:g[u]){
if(dis[i][v]>dis[i][u]+w){
dis[i][v]=dis[i][u]+w;
pq.push({dis[i][v],v});
}
}
}
}我恨dij啊啊啊,等等,,那没事了。
ZJ-S00015
hub.cpp
using namespace std;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
int c,t;
cin>>c>>t;
for(int i=0;i<t;i++){
cout<<"1\n";
}
return 0;
}
喜添一员猛将。
migrate.cpp
for(int i=1;i<=n;i++){
l[i]=lower_bound(p,p+i,p[i]-d)-p;
r[i]=upper_bound(p+i,p+n+2,p[i]+d)-p-1;
}单调队列因言语过激离开了直播间(别的部分都是线性)。
subway.cpp
for(int i=0;i<q;i++){
scanf("%lld%lld",&xr,&yr);
dij(xr);
printf("%lld\n",(w[xr]+w[yr]+dis[yr]));
}ZJ-S00016
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int C,T;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cin >> C >> T;
while(T--){
cout << 1 << endl;
}
return 0;
}你是不是抄00015的。
ZJ-S00017
hub.cpp 不存在
migrate.cpp 无任何输出语句。
subway.cpp
//我T2暴力都调不出来 我这几年是不是白学了
//我这活着还有啥意义 好绝望 我感觉我这辈子完了
//连个蓝钩都拿不到 90分 丢不丢脸
//高二了 这么把whk放一边来博这个OI 真的值得吗
//别活了 你这个fvv 投入这么多时间 精力 成本 就让你写个90出场的吗?
//老师 教练 家人 自己 多大的期待 你就这么辜负了 打这么点分 赶紧退役吧
//都等着看你笑话呢 你真是fvv 你有啥用抱抱,祝好,但是本文作者因为T2从7勾挂到6勾再挂到4勾。
ZJ-S00018
crystal.cpp
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 5e5+5;
int n, m;挂分警告。
hub.cpp
for (int i = 1; i <= n; i++)
printf("%d ", d[i]);
puts("");
printf("%d\n", maxx);调试语句掉大分。
migrate.cpp
long long dx = a[2]-a[1];
bool f = true;
for (int i = 2; i < n; i++)
if (a[i+1]-a[i] != dx) {
f = false;
break;
}测试点编号又笑了。
ZJ-S00019
crystal.cpp
for (int i = mi;i <= mx;i++){
cnt = 0,x = m;
for (int j = 1;j <= n;j++){
if (a[j] > i){
break;
}
if (x - (i-a[j]) >= 0){
x -= (i-a[j]);
cnt++;
}
}
ans = max(ans,cnt);
}勇士啊,枚举值域。
freopen("crystal.in","r",stdin);
freopen("crustal.out","w",stdout);正确枚举也过不了一点。
hub.cpp 不存在 migrate.cpp 不存在 subway.cpp
int dfs(int x,int y,int tm,int d){
if (x == y){
return d;
}
}
......
cin >> q;
while(q--){
int x,int y;
cin >> x >> y;
cout << dfs(x,y,tm) << endl;
}本来还在想CCF会不会放你过一点的,重新读入q真没招了。
ZJ-S00021
hub.cpp
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
int t;
cin>>t>>t;
for(int i = 1; i<=t; ++i) printf("1\n");
return 0;
}还有高手?!
migrate.cpp
int check1()
{
for(int i = 3; i<=n; ++i)
{
if(a[i]-a[i-1]!=a[i-1]-a[i-2]) return 0;
}
return 1;
}
int bl1()
{
int t = m/(a[2]-a[1]);
if(t==1||n-(2*t-1)<0)
{
printf("0\n");
return 0;
}
printf("%lld\n", n-(2*t-1));
}
int check2()
{
return cc==13||cc==14;
}这是怎么了?为什么一个用特殊性质判断一个用测试点编号。
subway.cpp
for(int i = 1; i<=n; ++i)
{
for(int j = 1; j<=n; ++j)
{
for(int k = 1; k<=n; ++k)
{
dp[i][j]=mn(dp[i][j],dp[i][k]+dp[k][j]);
}
}
}只苦笑望雨点。
ZJ-S00023
hub.cpp
#include <bits/stdc++.h>
using namespace std;
int main() {
freopen("hub.in", "r", stdin);
freopen("hub.out", "w", stdout);
ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
int c, t; cin >> c >> t;
while (t --) {
cout << 42 << '\n';
}
return 0;
}
/*
* 再见了,OI
* 希望你喜欢这 6 年来属于你的戏份
*/我也是科幻迷啊!祝好。
ZJ-S00024
hub.cpp 不存在 migrate.cpp
cin >> c >> t >> n >> d;
while(t--){
......
}你这是为何?
subway.cpp
while(q--){
cin >> x >> y;
dij(x);
cout << w[x] + w[y] + dis[y] << '\n';
}q遍dij让我哭泣。
ZJ-S00025
crystal.cpp
#include<bits/stdc++.h>
using namespace std;
//#define int long long
int n,m;好的注释,成功地避开了分数。这下知道signed main的含金量了吧。
hub.cpp 不存在
subway.cpp
while(q--)
{
int x,y;
cin >> x >> y;
dij(x);
cout << cur[y]+s[x]+s[y] << "\n";
}+1。
ZJ-S00026
hub.cpp
//这场的暴力怎么都这么困难 对的对的,我死磕T3没拼分。
下方注释中有一个长达352字节的左括号串。
subway.cpp
while(q--){
int s,e;
cin>>s>>e;
for(int i=0;i<v[e].size();i++){
}
}/*
终于轮到我了吗。。。。。。
AFOed...
大梦初醒罢了
我该在哪里停留我问我自己 --2026-10-31 17:50
*/好的故事。
ZJ-S00028
subway.cpp
for(int i=1,x,y;i<=Q;i++){
scanf("%d%d",&x,&y);
if(y<x) swap(x,y);
qry[x].push_back({y,i});
}
for(int xx=1;xx<=m;xx++)
if(qry[xx].size()){
dij(xx);
for(node t:qry[xx])
ans[t.w]=d[t.v]+w[xx]+w[t.v];
}
for(int i=1;i<=Q;i++)
printf("%lld\n",ans[i]);离线超纲了,dij气死了。
ZJ-S00029
crystal.cpp
long long rd(){
long long m=0,f=1;
char ch=getchar();
while(ch<'0'||ch>'9'){
if(ch=='-') f=!f;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
m=m*10+ch-'0';
ch=getchar();
}
return m*f;
}幸好这题没有负数,不然你就没了!!!
void wr(long long num){
if(num==0){
return ;
}
if(num<0){
putchar('-');
num=(-num);
}
wr(num/10);
putchar(num%10+'0');
}write半斤八两。
int find(long long sc){
for(int i=n;i>=1;i--){
if(a[i]<=sc) return i;
}
return 0;
}upper_bound:那我走?
long long L=INF,R=-INF;你为什么二分值域?值域和单调性在大样例中完全有关。
这么四个神人因素加在一起,我对此人的分数没有保证。
hub.cpp
long long c,n,m,d,q,w[500005];
int main(void){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
wr(1);
putchar('\n');
wr(2);
putchar('\n');
return 0;
}首先快读快写问题仍在。
然后你这声明是subway里抄的是吗。
最后骗分都骗不明白,多测觉得你很幽默。
migrate.cpp
int main(void){
// freopen("migrate.in","r",stdin);
// freopen("migrate.out","w",stdout);
......
}竟然还是一位freopen受害者,但是快读快写问题仍在。
subway.cpp
int main(void){
freopen("subway.in","r",stdin);
freopen("subway.out","w",stdout);
wr(35);
putchar('\n');
wr(16);
putchar('\n');
return 0;
}migrate暴力会写,subway一分不得,这是高人啊。
所以快读快写问了吗。
ZJ-S00030
crystal.cpp
for(int i=1;i<=n;i++)
{
if((i-1)*a[i]-ps[i-1]<=m)
ans=i;
}你覆盖干嘛。
hub.cpp
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=2e6+5;
int c,t,n,k,u[N],v[N];
int main()
{
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cin>>c>>t;
while(t--)
{
cin>>n>>k;
for(int i=1;i<=n;i++)
cin>>u[i]>>v[i];
cout<<1<<endl;
}
return 0;
}为什么都坚信1比0多啊?
migrate.cpp
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=2e6+5;
int c,t,n,d,x[N];
int main()
{
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
cin>>c>>t;
while(t--)
{
cin>>n>>d;
for(int i=1;i<=n;i++)
cin>>x[i];
cout<<0<<endl;
}
return 0;
}好的,原来在这等我啊。
subway.cpp
for(int i=1;i<=q;i++)
{
cin>>x>>y;
ans=INT_MAX;
dfs(y,x,station[x][0].first,w[x]+w[y]);
cout<<ans;
}且不论算法,你这输出已经完蛋了。
ZJ-S00031
hub.cpp
while (t--)
{
cout << 1 << endl;
}所以,你们这么相信CCF的数据是有什么心事吗。
migrate.cpp
while (t--)
{
cout << 0 << endl;
}反正我觉得我有心事。
ZJ-S00033
hub和migrate抽象理由和上一位完全相同,骗分方式也相同,但这不意味着抄袭,因为ZJ考号打乱。
subway.cpp
int main()
{
freopen("subway.in","r",stdin);
freopen("subway.out","w",stdout);
cout << "35\n16";
return 0;
}还有第三关?!
ZJ-S00034
migrate.cpp
int read(){
int num=0;
char c;
while((c=getchar())&&'0'<=c&&c<='9'){
num=num*10+(c-'0');
}
return num;
}你自己说你快读考虑过换行符的感受吗(结果没用)。
subway.cpp
int find(int x){
......
}
void dfs(int now,int fa){
......
}
void kruskal(){
......
}
int lca(int a,int b){
......
}仙之人兮列如麻,但好像与正解完美错开。
ZJ-S00035
hub.cpp
//by wild cat
/*
虽然教练不让,但还是想写一些关于CSP-S的看法,毕竟可能马上就退役了
这两年的密码似乎都有些小故事,去年是上善若水、人杰地灵,
今年是不给糖就捣蛋、10.31是否等于12.25,都与万圣节有关
这次我的预估得分是100+32+24+15=171,如果按照去年的分数线,
并且不爆,应该是能拿S1=
除了T1,基本上都拿了最好拿的分(潦草急就了)
特殊性质感觉都没什么用(也有可能是我不会用)
T3的大样例3竟然要1.349s,没事,相信CCF的评测机(相信着你了)
没想到昨天下午复习的tarjan缩点竟然没考
更想不到今年的2,4都是(或接近)图论
还好我没复习的KMP、马拉车也没考
之所以不复习这些,是因为我认为复习了也没用(计划妥当了)
听说明天要考社会,ZDJD?(心神不宁了)
哦对了
去年的电脑打不了中文
17.51插播
T2变量不看、只看数字是什么意思
其实我一直没看懂T2,题目里说“任意两个地铁站都可以通过若干条线路互相到达”,
但样例解释里又说“依次经过第1,2,5个地铁站”,反正我双向建边来跑dij过了样例
18.04插播
突然发现自己糖了,T4的dfs(t,cnt)中的cnt完全可以不需要,但不想改了
18.16插播
在回收站里看到了travel.cpp
*/今年ZJ分数线飞起来了。
ZJ-S00036
仅仅是 hub.cpp 不存在 罢了,你为什么会点进来看?!
因为
freopen("migrate.in","r",stdin);
freopen("migrate.out","r",stdout);ZJ-S00037
crystal.cpp
// freopen("E:\\down\\crystal\\crystal4.in","r",stdin);
// freopen("E:\\down\\crystal\\crystal4.out","w",stdout);
freopen("crystal.in","r",stdin);
freopen("crystal.out","w",stdout);我也要被意外诈骗吗?
另外三题都有这个内容。但subway是q遍dij,可恶啊。
ZJ-S00039
hub.cpp 不存在
subway.cpp 不存在
T1特判?还是不知CSP险恶啊。
ZJ-S00040
crystal.cpp
/*
bad in j
should be nice in s?
*/
/*
bad s
t1 wei he bu guo da yang li
0pts
i have no idea
*/
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("crystal.in","r",stdin);
freopen("crystal.out","w",stdout);
int n,m;cin>>n>>m;
vector<long long>a(n);
for(int i=0;i<n;i++)cin>>a[i];
sort(a.begin(),a.end());
vector<long long>d(n);
for(int i=1;i<n;i++)d[i]=a[i+1]-a[i];
d[0]=a[0];
unsigned long long sum=0,res=0,r2=1;
for(int i=0,j=0;i<n-1&&j<n-1;){
if(sum+d[j]<=m)sum+=d[j++],r2++;
else{
sum=0;
j++,i=j;
res=max(res,r2);
r2=1;
}
}
cout<<max(r2,res)<<'\n';
}m没开longlong,我帮你找出来了,不用谢。
hub.cpp
//no at most 140pts
//r.i.p. s
#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cout<<"1\n2";
}空悲切!
ZJ-S00042
crystal.cpp
namespace sgt{
......(正常线段树)
}知道你会用大炮了。
migrate.cpp
/*
华风夏韵,洛水天依!
freopen("migrate.in","r",stdin);
出两道图是什么意思?
输麻了
*/诈骗,但没有意识到其实可以算三道图。
ZJ-S00043
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int c;
int t;
int n;
int k;
int u[1000010],v[1000010];
int flag=0;
bool lj;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cin>>c>>t;
while(t--){
cin>>n>>k;
for(int i=1;i<n;i++){
cin>>u[i]>>v[i];
}
if(n==5&&k==2&&lj==0){
flag=1;
lj=1;
}
if(n==8&&k==6&&lj==0){
flag=2;
lj=1;
}
if(n==602&&k==42&&lj==0){
flag=3;
lj=1;
}
if(n==24032&&k==2&&lj==0){
flag=4;
lj=1;
}
if(n==99999&&k==1000&&lj==0){
flag=5;
lj=1;
}
}
if(flag==1){
cout<<1<<endl<<2;
return 0;
}
if(flag==2){
cout<<1<<endl<<1<<endl<<2;
return 0;
}
if(flag==3){
cout<<17<<endl<<9<<endl<<6<<endl<<6<<endl<<9;
return 0;
}
if(flag==4){
cout<<189<<endl<<233<<endl<<288<<endl<<229<<endl<<338;
return 0;
}
if(flag==5){
cout<<12251;
return 0;
}
return 0;
}骗分老大哥。
migrate.cpp
#include<bits/stdc++.h>
#define int long long
using namespace std;
int c,t;
int n,d;
int x[2000010];
int flag=0;
bool lj;
signed main(){
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
cin>>c>>t;
int t1=t;
while(t--){
cin>>n>>d;
if(n==4&&d==2&&lj==0){
lj=1;
flag=1;
}
if(n==5&&d==3&&lj==0){
lj=1;
flag=2;
}
if(n==197&&d==29418319589926278&&lj==0){
lj=1;
flag=3;
}
for(int i=1;i<=n;i++){
cin>>x[i];
}
}
if(flag==1){
cout<<1<<endl<<2;
return 0;
}
if(flag==2){
cout<<0<<endl<<1;
return 0;
}
if(flag==3){
cout<<"8129\n16\n9\n7\n12\n0\n0\n0\n2\n1\n0\n2\n3\n6\n0\n2\n0\n";
}
return 0;
}。
subway.cpp
for(int i=1;i<=m;i++){
for(int j=1;j<=m;j++){
for(int k=1;k<=m;k++){
f[i][j]=min(f[i][k]+f[k][j],f[i][j]);
}
}
}为什么会变成……这样……
ZJ-S00044
subway.cpp
for(int i=1;i<=n;i++){
scanf("%d",&k[i]);
......
for(int j=0;j<k[i];j++)
for(int l=0;l<k[i];l++){
int x=a[i][j],y=a[i][l];
f[x][y]=f[y][x]=t[i][j]+t[i][l];
}
}明明差一点。
ZJ-S00045
hub.cpp
while(q--){
int x,y;
cin>>x>>y;
}无泪的遗憾,但……
int c,n,m,d,q;
cin>>c>>n>>d>>q;
for(int i=1;i<=m;i++){
cin>>w[i];
}
for(int i=1;i<=n;i++){
int k;
cin>>k;
for(int j=1;j<=k;j++){
cin>>a[i][j]>>t[i][j];
}
}抄subway都抄不全、抄不对?
migrate.cpp 为空文件。
subway.cpp 还真是。
ZJ-S00046
crystal.cpp
for(int i=2;i<=n;i++){
d[i-1]=a[i]-a[i-1];
}
for(int i=n;i>=1;i--){
d[i]=d[i+1]+d[i];
}
for(int i=1;i<=n;i++){
p[i]=p[i-1]+d[i];
}这是……差分的后缀和的前缀和?
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int c,t,n,d;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cin>>c>>t;
while(t--){
int n,d;
cin>>n>>d;
if(n==d){
cout<<0<<endl;
}
else{
cout<<1;
}
}
return 0;
}+1。
migrate.cpp
#include<bits/stdc++.h>
using namespace std;
int c,t,n,d;
int main(){
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
cin>>c>>t;
while(t--){
int n,d;
cin>>n>>d;
cout<<0<<endl;
}
return 0;
}+2。
ZJ-S00049
crystal.cpp
void erfen(long long n,long long m){
long long l=1,r=n;
while(l<=r){
long long mid=(l+r)/2;
if(check(mid,n,m)){
l=mid+1;
}else r=mid-1;
}
cout<<l-1;
return;
}你就不怕我输出个0吗?
ZJ-S00051
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cout<<1;
return 0;
}多测:……眼睛不需要可以捐给需要的人?
migrate.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
cout<<0;
return 0;
}多测:我到底是不是限制条件啊?!
ZJ-S00053
migrate.cpp
static inline void dijkstra(int st){
...
}没用但还挺花,不如我给你超级加倍吧。
高能预警
extern "C++"{template<typename T>__attribute__((__always_inline__))constexpr volatile static inline auto dijkstra(const T&st)noexcept->void{
}}//要不是不在class内,我给你再加virtual和friend,public也不错 但忘说了,virtual和friend、static冲突,explicit无法在非构造函数中使用,friend与auto冲突。
ZJ-S00055
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
return 0;
}彻底放弃了,比前面几位还要狠。
migrate.cpp hub.cpp
ZJ-S00056
hub.cpp
/*
0 1
5 3
1 2
2 3
3 4
4 5
This is Rigel, luogu 602458.
( My Engligh is really poor. qwq )
I am a grade-12 student. Yes, senior-high-3.
Only 1 month after NOIP2026, I will take part in ZJ Shoukao, a part of Gaokao.
This contest, CSP-S 2026, is my last CSP.
If there's no issues in my code, my score will be:
100 + 100 + 24 + 5 = 229 pts.
Why T2 so easy. So I think level-7 line on luogu will be around my score, +- 10 pts.
Good luck.
*/预言家,但T4挂掉了。
ZJ-S00057
subway.cpp
for(int l=1;l<=n;l++){
int k;
scanf("%d",&k);
for(int j=1;j<=k;j++)
scanf("%d%d",&cc[j].first,&cc[j].second);
for(int i=1;i<=k;i++)
for(int j=i+1;j<=k;j++){
e[cc[i].first].push_back(node(cc[j].first,cc[i].second+cc[j].second));
e[cc[j].first].push_back(node(cc[i].first,cc[i].second+cc[j].second));
}
}真勇啊,但是RE,他只定义了20,却不知CCF早已造好了能放他过的中数据。
ZJ-S00058
hub.cpp 不存在
migrate.cpp 不存在
ZJ-S00059
hub.cpp
while(t--){
ll a, b;
cin>>a>>b;
cout<<(a+1)/8+1-b/4;
}公式化骗分,但保单。
subway.cpp
// freopen("subway.in","r",stdin);
// freopen("subway.out","w",stdout);从来不知想拥有多少的理想。
ZJ-S00060
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
return 0;
}大道至简。
subway.cpp
while(q--){
int x,y;
scanf("%d%d",&x,&y);
spfa(m+x);
printf("%lld\n",dis[m+y]+w[x]+w[y]);
}q遍spfa,得到了多少分呢?
ZJ-S00062
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cout<<9<<endl<<7<<endl;
return 0;
}骗分?不,这是没有希望的放弃。
migrate.cpp
cout<<sizeof(isl)/8/1024;此乃何意,你不要你的24分了吗?
subway.cpp
for(int i=1;i<=n;i++)
{
for(int j=i;j<=n;j++)
{
long long mini=line[i][j];
for(int k=1;k<=n;k++)
{
mini = min(mini,line[i][k]+line[k][j]);
}
line[i][j] = mini;
line[j][i] = mini;
}
}一切都结束了,我仿佛看见我的80pts飞向了远方。
ZJ-S00064
crystal.cpp
// 5 min 秒切
// woc 大样例没过
// woc 没开 long long
// 哈哈哈排序前前缀和我真是个人才
// 秒了 厉害啊,我用了10min,比我强整整1倍(明明我是班里手速王,今日甘拜下风)。
migrate.cpp
// ?瞄了一眼 T3T4 怎么全是图论?!
// CCF 写图写啥了?!
// 我错了,第三题不是图论QAQ
// 我是要冲 300+ 的人 ,这道应该是蓝以上的 dp 必须拿下!!!!
// 可以先 nlogn 预处理一下
// n^2 还是简单的 但是我已经不会继续优化了QAQ 我要是再不优化就成大众分了!!! 罢了罢了看 T4
// woc,好像是乘法原理=2就可以!!!!这题好像是组合计数 DP!!!
// 好吧还是不会,拿个 48 跑路 我是要冲300+的人?路飞:我还要等作者30年呢。
scanf("%d%d", &c, &t);
if (c == 11 || c == 12) {
scanf("%d%d", &n, &m);
for (int i = 1; i <= n; ++i) scanf("%d", &a[i]);
int tas = 1;
for ( ; tas <= n; ++tas) if (a[tas] - a[1] > m) break ;
--tas;
long long ans = 0, jj = 0;
for (int i = tas * 2; i <= n; ++i) {
if (i % tas == 0) ++jj;
ans += jj;
}
printf("%lld", ans);
return 0;
}还会TAS?但多测。
subway.cpp
// 好难懂。。w
// 20min才读懂题目意思awa
// 图论建模?
// 怎么优化图呢?
// 还是只会 60pts
// 继续给我想!!!
// 建出来的图点的度数除那 500 之外都小于 20
// 结合去年来看这个性质有大用
// 有意思,先预处理每条线之间的最短路不就行了?!
// T2 也是秒切,思路思考时间小于读题时间(
// 16:00 切T2,手感不错
// 建图复杂度 20^2 * m + n^3
// 咦怎么没过
// woc floyd 写错了 ok 过了 ZJ-S00065
crystal.cpp
//2026CSP-S RP<<=INF记住这句话。
hub.cpp
if(n == 5) {
cout << 1 << endl;
} else if(n == 10) {
cout << 2 << endl;
} else if(n % 2 == 1) {
cout << 12251 << endl;
} else {
cout << rand() << endl;
}骗分也不错。
migrate.cpp
for (int i = 1; i <= n; i++) {
cin >> x[i];
cout << 0 << endl;
}你是要OLE还是要上天?
subway.cpp
if(x == 1 && y == 3) {
cout << 32 << endl;
} else if(x == 1 && y == 2) {
cout << 17 << endl;
} else if(x == 1 && y == 6) {
cout << 35 << endl;
} else if(x == 2 && y == 3) {
cout << 16 << endl;
} else {
cout << rand() << endl;
}噔、噔、噔!我看你RP<<=inf还以为有高招。
此处应有MVP结算动画。
这下你的RP溢出了吧(负数左移是UB,0左移wyy,正数左移瞬间爆longlong)。
ZJ-S00067
三连error,不是我弄的啊。
crystal.cpp
#include <bits/stdc++.h>
using namespace std;
long long m, a[50010], f[10010][10010], t[10010][10010];
int n, ans = -1e9;
int main()
{
freopen("crystal.in", "r", stdin);
freopen("dp.out", "w", stdout);
cin >> n >> m;
int cnt = 0;
for (int i = 1; i <= n; i++) scanf("%lld", &a[i]);
memset(f, 1e9, sizeof(f));
for (int i = 1; i <= n; i++) f[i][i] = 0, t[i][i] = a[i];
for (int len = 0; len <= n; len++)
{
for (int i = 1; i <= n; i++)
{
int j = i + len;
if (j > n) break;
if (a[j + 1] > t[i][j])
{
int x = (len + 1) * (a[j + 1] - t[i][j]);
f[i][j + 1] = max(f[i][j + 1], f[i][j] + x);
t[i][j + 1] = a[j + 1];
}
else
{
int x = t[i][j] - a[j + 1];
f[i][j + 1] = max(f[i][j + 1], f[i][j] + x);
}
}
}
for (int i = 1; i <= n; i++)
{
for (int j = i; j <= n; j++)
{
if (f[i][j] <= m) ans = max(ans, j - i + 1);
}
}
printf("%d", ans);
return 0;
}hub.cpp 不存在
migrate.cpp 不存在
subway.cpp
int c, n, m, d, q;
......
point q[50010];ZJ-S00068
hub.cpp
#include<iostream>
int main(){
std::cout<<3;
return 0;
}嗯对,多测,open。
subway.cpp
#include<iostream>
int main(){
std::cout<<7;
return 0;
}所以你一直在做migrate?
ZJ-S00069
subway.cpp 不存在
ZJ-S00070
subway.cpp
#include<bits/stdc++.h>
using namespace std;
struct node{
int to,w;
};
int c,n,m,d,q,w[500005],k[505],a[505][500005],t[505][500005];
vector<node> edges[500005];
int main(){
freopen("subway.in","r",stdin);
freopen("subway.out","w",stdout);
scanf("%d%d%d%d%d",&c,&n,&m,&d,&q);
for(int i=1;i<=m;i++)
scanf("%d",&w[i]);
for(int i=1;i<=n;i++){
scanf("%d",&k[i]);
for(int j=1;j<=k[i];j++){
scanf("%d%d",&a[i][j],&t[i][j]);
}
for(int j=1;j<=k[i];j++){
for(int jj=1;jj<=k[i];jj++){
if(j==jj)
continue;
edges[j].push_back({jj,t[i][j]+t[i][jj]});
edges[jj].push_back({j,t[i][j]+t[i][jj]});
}
}
}
for(;q--;){
int x,y;
scanf("%d%d",&x,&y);
}
return 0;
}ZJ-S00072
ZJ-S00075
hub.cpp
// freopen("hub.in","r",stdin);
// freopen("hub.out","w",stdout);migrate.cpp
// freopen("migrate.in","r",stdin);
// freopen("migrate.out","w",stdout);还离不开种种困忧。
ZJ-S00078
crystal.cpp
//freopen("crystal.in","r",stdin);
//freopen("crystal.out","w",stdout);勉强去掩饰失意的感觉。
ZJ-S00080
hub.cpp
void ycl(){
for(int i=1;(1<<i)<=n;i++){
for(int j=1;j<=n;j++){
dad[j][i]=dad[dad[j][i-1]][i-1];
}
}
}在考场上不应该顾念亲情。
ZJ-S00081
crysta.cpp
目前为止第一个文件名写错的。
hub.cpp 不存在。
ZJ-S00082
hub.cpp 不存在
在subway文件夹中有一个未命名3.cpp,freopen只有read “subway2.in” ,没有write的freopen。
ZJ-S00084
hub.cpp
int main()
{
freopen("hub.in", "r", stdin);
freopen("hub.out", "w", stdout);
cout << 1 << '\n';
return 0;
}或许,+1?
subway.cpp
while (q--)
{
z = read(), x = read();
write(dijkstra(z, x));
putchar('\n');
}我是噩梦。
ZJ-S00085
subway.cpp
for(ll i=1;i<=n;i++){
for(ll j=1;j<=n;j++){
for(ll h=1;h<=n;h++){
if(vis[i][j]!=-1&&vis[j][h]!=-1){
if(vis[i][h]==-1)vis[i][h]=vis[i][j]+vis[j][h];
else vis[i][h]=min(vis[i][h],vis[i][j]+vis[j][h]);
}
}
}
}据说ikj能得92分,真的假的?
ZJ-S00086
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
return 0;
}你这大道也不简单啊,会freopen超纲了。
migrate.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
return 0;
}不简单,那多学两遍不就完了。
subway.cpp
while(q--){
int x,y;
cin>>x>>y;
ans=INF;
for(int i=0;i<f[x].size();i++){
for(int j=i+1;j<f[y].size();j++){
ans=min(ans,Dijkstra(-f[x][i].first,-f[y][i].second)+w[-f[x][i].first]+w[-f[y][i].second]+f[x][i].second+f[y][i].second);
}
}
cout<<ans<<'\n';
}天天都可骚扰你。
ZJ-S00087
hub.cpp
/*
use UTF-8 to open it
现在是17:46,记录一下我的感受吧
高三回来居然还有手感,15分钟切了T1,30分钟切了T2
T1:
观察到连续的水晶取一定不劣,双指针秒了
T2:
对线路做n^3的那个最短路,枚举询问的每个线路距离再加常数即可
T3:
只有一点模糊的思路,枚举首位,每次取最后三个位置向右拓展,这个双径对一定被她们拓展出来的
T4:
也是一点思路,两个基地至少都要有一部分在直径上
估计100+100+40(n^2)+?(?)=240
对于退役选手还算行吧
还是想冲一冲NOIP一等,执念太重了
哎QAQ,打个CSP这么费劲,我还有什么用呢?
乖乖回去首考吧,冲个420寒假还能放松一下
再见了CSP
freopen(".in","r",stdin);
freopen(".out","w",stdout);
feropen("hub.in","r",stdin);
feropen("hub.out","w",stdout);
有人看到的话帮忙放一下迷惑行为大赏,谨以此铭记我过去的青春
*/大神啊,还会诈骗学又考得好,至于迷惑,我输了。
ZJ-S00089
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
cout<<"2\n1";
return 0;
}migrate.cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
cout<<"0\n1\n2\n1";
return 0;
}subway.cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
freopen("subway.in","r",stdin);
freopen("subway.out","w",stdout);
cout<<"17\n36\n32";
return 0;
}忘掉远方是否会有出路。
ZJ-S00090
hub.cpp
Lwhile(T){
cout<<"0\n";
}忘掉夜里月黑风高。
migrate.cpp
freopen("migrate4.in","r",stdin);
freopen("migrate.out","w",stdout);再次听到昨日的冷嘲。
ZJ-S00091
hub.cpp
// 15:17 T1 50pts 暴力
// 15:57 T1 二分全部样例通过 预期 100pts
// 16:30 这个 T2 怎么这么石
// 16:42 有点猜到 T2 是什么了
// 17:00 好麻烦,又要建图还要求最短路
// 怎么写 dij ?
// 我觉得这个 dij 效率很慢,而且图里有大量的重边
// 复杂度高达 O(qnlogm + k^2)
// 嘻嘻, 没救了
// 咦,memset 怎么初始化最大值? 可以用 LONG_LONG_MAX 吗, 还是说用 0x7f7f7f7f?
// only 100
// 为什么一直 RE 啊啊啊啊啊啊啊啊啊!!!!!!!!!!!!
// 为什么不 relax ??????
// 120 min 什么也没干,仍然 100pts
// T2 还是没有调出来
// 我果然还是太菜了
// Grade 10 第一次打CSP 100pts 可以退役吗?
// 可是我真的很想打NOIP
// 虽然 whk 还可以, 但是一年之后不知道成什么样
// 可能真的要和 OI 说再见了吧
// 那就这样吧,我的第一次也是最后一次 CSP
// 我期待在迷惑行为大赏上看到我自己 int c, t;
cin >> c >> t;
int k;
while(cin >> k) a.push_back(k);
k = clock();
while(t--) {
cout << a[k % a.size() - 1];
}如你所愿,但第一次就会高级骗分超纲了。
migrate.cpp
#include <iostream>
using namespace std;
int main() {
freopen("migrate.in", "r", stdin);
freopen("migrate.out", "w", stdout);
int c, t;
cin >> c >> t;
while(t--) {
cout << 0 << endl;
}
// 不可以, 总司令.
}但今天前线战况还真可以。
subway.cpp
while(q--) {
int x, y;
cin >> x >> y;
for(int i = 1; i <= n; i++)
dis[i] = LONG_LONG_MAX;
for(int i = 1; i <= n; i++)
vis[i] = 0;
dis[x] = 0;
// cout << Q.empty() << endl;
Q.push({x, 0});
while(!Q.empty()) {
auto x = Q.top();
Q.pop();
// cout << x.id << " " << x.dist << endl;
if(vis[x.id]) continue;
vis[x.id] = 1;
for(auto y : G[x.id]) {
if(x.dist + y.val <= dis[y.to]) {
dis[y.to] = x.dist + y.val;
Q.push({y.to, dis[y.to]});
}
}
// for(int i = 1; i <= m; i++)
// cout << dis[i] << " ";
// cout << endl;
}
cout << dis[y] << endl;
}
// 这和不可以总司令没有什么区别还真有区别,至少数据想放你。
ZJ-S00093
crystal.cpp
#define _ 0
return ~~(0^_^0);
#undef _还挺皮。
hub.cpp
/*
17:25
写完了。不想再写其他神秘部分分了。人有点难受www。
100 + 100 + 40 + 15 = 255 pts 这是我能达到的分数吗?我模拟赛从来没有这么高过。。
希望不要挂。。给我一个 7 dog 吧!!求你了
我是 ZJ-J00072(?有点忘了)/ZJ-S00093
不会再考 J 组了我要睡懒觉www
考 S 组的时候有点躯体化真的有点难受感觉全身发烫
孩子们千万心态要好不要像我一样中度抑郁了zzz
希望 T2 不要爆空间
能想出 T2 O((m+q)d^2+n^3) 我已经很满意了,我觉得这就是正解 Bad 138 News :D
放我过去吧,本地感觉 1+eps second 不会测时间和空间www
T1 别挂虽然我一眼秒了
剩下部分分就算挂了也没事了我够满意了
本来父母让我抱着来玩的心态(两个月躺家里。。)来打,但是我根本做不到。。
祝大家都获得自己想要的成绩!!RP++
14:40 AC T1
15:55 AC T2 16:10 卡常卡空间 怎么要 760+ MB??? 还好都开的 1GiB 空间
16:40 T3 40pts O(n^2)
17:20 T4 15pts O(n2^n)
我感激所有的一切。。谢谢你们口牙
LUOGU 998662 / xk2013
*/
// 好了不写了,我不想再改文件字节数了,希望不要挂分我已经检查了 1e18 次代码和测试大样例了www
//freopen //freopen //freopen //freopen //freopen //freopen //freopen //freopen //freopen //freopen
// Never Say Goodbye (Rizline) :D诈骗祖师?!/bx
ZJ-S00094
hub.cpp
for (int i = 1; i <= t; i++){
cin >> n >> k;
for (int j = 1; j <= n - 1;j ++){
cin >> u >> v;
}cout << (k + 1) / 2 << endl;
}踏雪过山双脚虽渐老。
migrate.cpp
cin >> n >> d;
for (int j = 1; j <= n; j++){
cin >> x[j];
}if (n < 4 || d * 2 > n || x[2] - x[1] > d || x[3] - x[2] > d){
cout << 0 << endl;
}else if (x[2] - x[1] == x[n - 1] - x[n - 2]){
int y = x[2] - x[1];
if (d / y < 2){
cout << 0 << endl;
}else{
if (d / y + d / y - 1 >= n){
cout << 0 << endl;
}else {
cout << n - (2 * (d / y) - 1) << endl;
}
}
}else {
if (n > 6){
cout << n / 5 << endl;
}else {
if (d > n / 3){
cout << 0 << endl;
}else {
cout << 1 << endl;
}
}
}我见过最复杂的骗分之一。
ZJ-S00095
subway.cpp
int c /*测试点编号*/, n /*地铁线路数*/, m /*地铁站数*/, d /*每个地铁站最多被几条线路经过*/, q /*出行计划数*/;
int w[500001] /*地铁口走到站厅*/;
int k[501] /*经过的地铁站数*/;
vector<int> a[501] /*第 i 条线路经过的第 j 个地铁站*/, t[501] /*从该地铁站的站厅走到第 i 条线路的站台需要的时间*/;
vector<pair<int, int>> l[500001] /*经过第 i 个地铁站 & 对应的 j */;
vector<int> hc[501] /* 换乘站对应的 j */;你想说明什么?
ZJ-S00096
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
int c,t;
cin>>c>>t;
for(int i=1;i<=t;i++)
{//分组处理
int n,k;
cin>>n>>k;
int u[1000000],v[1000000];
for(int j=1;j<n;j++)
{
cin>>u[i]>>v[i];
}
}
return 0;
}你都没写什么怎么写起注释来了。
subway.cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("subway.in","r",stdin);
freopen("subway.out","w",stdout);
int c,n,m,d,q,k;
cin>>c>>n>>m>>d>>q;
long long w[200000];
for(int i=1;i<=m;i++)
{
cin>>w[i];
}
long long a[200000],t[200000];
for(int i=1;i<=n;i++)
{
cin>>k;
cin>>a[i]>>t[i];
}
return 0;
}我放弃治疗。
ZJ-S00097
hub.cpp 为空文件。
migrate.cpp 为空文件。
ZJ-S00098
crystal.cpp
auto check=[&](i64 val,int l,int r)->bool {
return (r-l+1)*val-(s[r]-s[l-1])<=m;
};lambda大手子!STL小资历前来拜谢。
hub.cpp
cout<<"19936\n";疑为茅台19937(mt19937)偷工减料1天。
subway.cpp
for(int k=1;k<=n;++k)
for(int i=1;i<=n;++i)
for(int j=1;j<=n;++j)
dis[i][j]=min<i64>(dis[i][j],dis[i][k]+dis[k][j]);ZJ-S00099
hub.cpp
while(T--) {
cin >> n >> k;
for(int i = 1; i <= n; ++i) {
cin >> u >> v;
e[u].push_back(v);
e[v].push_back(u);
}
}你建出来的,未必是棵树,但有人看到,便不算滚木。
migrate.cpp
while(t--) {
cin >> n >> d;
for(int i = 1; i <= n; ++i)
cin >> x[i];
}没有输出吗?这不是一个好兆头。
subway.cpp
for(int i = 1; i <= q; ++i) {
cin >> x >> y;
cout << bfs(x, y) << '\n';
}江山代有才人出,其实这个也能过。
ZJ-S00100
hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("hub.in","r",stdin);
freopen("hub.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
int c,t;
cin>>c>>t;
for(int i=1;i<=t;i++)cout<<i<<'\n';
return 0;
}migrate.cpp
#include<bits/stdc++.h>
using namespace std;
int c,t,ans,f[1005][1005],n,d,a[1005];
int main(){
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
cin>>c>>t;
while(t--){
ans=0;
cout<<ans<<'\n';
}
return 0;
}但靠两手一切达到。
后记
其实我是区,100+76+8+10比分数线(ZJ1=,6勾)低了eps分,migrate 调不出,hub什么性质都没想,哦哦哦区区?!
::anti-ai[看来你们不知道我是区cPMmdxn@j*3UvGL#a9c%pNiW]













