CSP-S 2022 HE 迷惑行为大赏
如希望撤下,请联系博主
如果要撤下的时候还是希望告诉撤哪一条,因为我并没有记准考证号
// freopen 人
6 文件共 11 结果,其中一个注释文件重定向为本地文件
AK 人
}else puts("youwike AK IOI!");
AK IOI 人
inline bool check(int i, int j, answers I_AK_IOI) {
if (i == I_AK_IOI.i || i == I_AK_IOI.j) return false;
if (j == I_AK_IOI.i || j == I_AK_IOI.j) return false;
if (len[j][I_AK_IOI.j] > k) return false;
return true;
}
qwq 人
9 文件共 46 结果
膜拜人
// cout<<"%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
// for(int i=1;i<=n;i++){
// for(int j=1;j<=m;j++){
// cout<<c[i][j]<<' ';
// }
// cout<<endl;
// }
// cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
文明人
i hate CCF.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
fuck.
AFO 人
// AFO AFO AFO!
恶臭人
114514 :15 文件中有 36 个结果
1919810 : 5 文件中有 6 个结果
样例输入人
freopen("galaxy2.in","r",stdin);
freopen("galaxy.out","w",stdout);
标准答案人
freopen("game.in","r",stdin);
freopen("game.ans","w",stdout);
恋爱人
#define WMX aiaiai~~
#define GMY (520&1314)
rp++人
int main(){
freopen("galaxy.in","r",stdin);
freopen("galaxy.out","w",stdout);
cout << "CSP-S 2022 rp++!" << " " << "mobaierduolong_";
return 0;
}
说者无意,听者有心
//这是他树剖LCA代码中的一部分
else
{
--rp;
sta[rp] = y;
y = fa[y];
}
随机数人
if(rand()%4)
puts("NO");
else puts("YES");
凉凉人
void add(int u,int v){
e[++cnt].v=v;
e[cnt].next=head[u];
head[u]=cnt;
}
//凉凉
int ans;
水星人
int query2(int s, int t, int p, int l, int r) {
if (s <= l && r <= t) return mn[p];
int res = inf;
if (s <= mid) res = query2(s, t, lc, l, mid);
if (mid < t) res = min(res, query2(s, t, rc, mid + 1, r));
return res;
}
} T1, T2, T3, T4;
// why T2 so water?
打表人
if(x == 698 && y == 9917)
// {
// printf("-602415398826940\n-602415398826940\n-602073731296760\n-602415398826940\n-602073731296760\n-555828445322100\n-774873585548062\n-11438911038865536\n9195569071123911\n-602415398826940\n-602415398826940\n-602073731296760\n-602073731296760\n-602415398826940\n-4488409480309323\n-4287524583544362\n-602073731296760\n-5836096309863600\n-554286408315280\n-9389303422450704\n-602073731296760\n-602073731296760\n6334484973485885\n-18681926571943756\n-602073731296760\n-602073731296760\n-602415398826940\n-602073731296760\n-602073731296760\n-602073731296760\n-602073731296760\n-11633901234259600\n-602415398826940\n-4488409480309323\n92084520257161408\n-602073731296760\n-602073731296760\n-602415398826940\n-602073731296760\n-4485889729272600\n-602415398826940\n-602415398826940\n-602073731296760\n-602415398826940\n-4456810478003177\n-602073731296760\n-602415398826940\n-567206100487240\n-602073731296760\n-602073731296760\n-554286408315280\n-602415398826940\n92562392144602289\n-602415398826940\n-602415398826940\n-602073731296760\n-4488409480309323\n-4488409480309323\n-11438911038865536\n-602415398826940\n-4488409480309323\n-3695298932978933\n-567206100487240\n-4485889729272600\n-53565109841808990\n-602073731296760\n-602073731296760\n-602073731296760\n-382747203308510\n-5839374479995878\n-602073731296760\n-602073731296760\n-602073731296760\n-11137190264665600\n-4488409480309323\n-602415398826940\n-46282789745756853\n-602415398826940\n-602073731296760\n-780367476826938\n10211824836316512\n-160399420864930\n-511411449471155\n-491392373159510\n-602073731296760\n-4488409480309323\n-602073731296760\n-5839374479995878\n-13078142318260800\n0\n-7831143967164104\n-4488409480309323\n-554286408315280\n-602073731296760\n-602073731296760\n-602073731296760\n-602073731296760\n-4488409480309323\n-554286408315280\n-567206100487240\n-\n-7562596271729240\n-602073731296760\n-602073731296760\n-602073731296760\n-602415398826940\n-554286408315280\n-602415398826940\n-602073731296760\n-602415398826940\n-4488409480309323\n-602415398826940\n-602415398826940\n-602073731296760\n-6934551908127672\n-5457420515963554\n-602415398826940\n-19588094979136200\n6312881720914290\n-602415398826940\n-602415398826940\n-491392373159510\n-602415398826940\n-5836096309863600\n-602073731296760\n-3695298932978933\n-602073731296760\n-602073731296760\n-602415398826940\n-602415398826940\n-4488409480309323\n-602073731296760\n44500496687784605\n0\n-540755025181290\n-602073731296760\n26112263633036770\n-4488409480309323\n98690637349684080\n-10903608882710016\n53801072731251658\n-602415398826940\n-497209215789360\n-491392373159510\n-602073731296760\n-9454749376227200\n-602415398826940\n-555828445322100\n18906121367433588\n-602073731296760\n-602415398826940\n-3695298932978933\n86723503378009297\n-602415398826940\n-554286408315280\n-602415398826940\n-602073731296760\n-55849485585208329\n-602415398826940\n-602415398826940\n-602073731296760\n-602415398826940\n-602415398826940\n-602415398826940\n-554286408315280\n-602415398826940
//-5839374479995878
//-602073731296760
//-554286408315280
//-602073731296760
//-602073731296760
//-602073731296760
//-11438911038865536
//-602415398826940
//-5839374479995878
//-497209215789360
.....
锟斤拷
// 锟捷o拷 锟揭匡拷锟皆帮拷锟斤拷锟斤拷锟斤拷敕ㄉ撅拷锟斤拷锟� 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
#include <cstdio>
typedef long long ll;
const int maxn = 1e5 + 5, inf = 1e9;
inline ll min(ll a, ll b){ return a < b ? a : b; }
inline ll max(ll a, ll b){ return a > b ? a : b; }
int n, m, T, a[maxn], b[maxn];
int mn_a1[26][maxn], mn_a2[26][maxn], mn_b1[26][maxn], mn_b2[26][maxn];
int mx_a1[26][maxn], mx_a2[26][maxn], mx_b1[26][maxn], mx_b2[26][maxn];
int a0[26][maxn], b0[26][maxn];
int l1, l2, r1, r2;
ll La_Pluma1(int bas1, int bas2){
fclsoe 人
freopen("galaxy.in","r",stdin);
freopen("galaxy.out","w",stdout);
cin>>n>>m;
while(m--) cin>>from>>to;
cin>.q;
while(q--){
cout<<"NO"<<endl;
}
fclose(stdin);
fclsoe(stdout);
同时,他的T1有这个东西
fclsoe(stdin);
骗分过样例人
freopen("transmit.in", "r", stdin);
freopen("transmit.out", "w", stdout);
n = read(), q = read(), k = read();
if (n == 7 && q == 3 && k == 3) {
printf("12\n12\n3");
return 0;
}
if (n == 10 && q == 10 && k == 3) {
printf("1221097936\n1086947276\n1748274667\n887646183\n939363946\n900059971\n964517506\n1392379601\n992068897\n541763489");
return 0;
}
骗分失败人
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("galaxy.in","r",stdin);
freopen("galaxy.out","w",stdout);
cout<<0;
return 0;
}
摆烂人
#define abhwolxq bailan
讲述人
//Seems I can only use spfa,not dijkstra.
//But I can't use spfa,too.
//This must be wrong(bei
/*
I can't solve the problem,but maybe I can tell a story to you.
Once upon a time,thers's a boy named Houyama Ren(?).
Ren is a kind(?),friendly(?),and helpful(?) student.
One day,Ren went school and he met some friends.
There are 16 people in the school.
First is Asakura Tsubakita,
Second is a Paintist(Ren forgot his name(wu
Third is Patricia Landau,
The forth is Nouno Nanako,
The fifth is Kamo(Ren remeber his name,but forgot his family name(wu
The sixth is Nakamura Harudou,
The seventh is Tsutori Kaoru,
The eighth is Naruka Hana,
The nineth is Qin Keran(Xianran,She's a Chinese
The tenth is Miyasawa Sasuki
The eleventh is a little girl(Xianran,Ren has a bad jixing
The twelveth is Lyuuhin(Xianran,Ren forgot his family name
The thirteenth is Mariya(Xianran,Ren also forgot her family name
The fourteenth is Kazekirinko(But Ren made a mistake on speeling
The fifteenth is Ren,
The sixteenth is Jyuurokusawa Miyaichi.
And then,they're all dead expect Patricia,Harudou and Hana.
Imust save it and yasuo my code now!
*/
哲♂学家
//oier-meet.cn
//deep dark fantasy
//Luogu UID: 206814 LiuTianyou
//I'm sorry, I got 0 pts.
注意事项
//记得解开注释!!!
//考试结束之前把它放到考试文件夹中
//都放在子文件夹里面,记得新建子文件夹!!
//fdsjajewhlksydfushdjfkhselkjfhsadlkjfhwaeoi;uriopshfdlsadnf;sd
密码复读
//belief2022
#include<bits/stdc++.h>
using namespace std;
const int maxn=10010;
typedef unsigned long long ull;
赞美之词
return 0;
}
// wow actually good dynamic
-O2优化,全部秒杀
//Hey wait a second
//The testcase four might TLE
//Which is not good
//However it can be ignored because I didn't open -O2
//HZOI2022 RP++!
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
const long long WR=201000,INF=2147483647;
考场题解1
/*
l1 == r1
注意 i j 与平时意义不同
l2 == r2
则过程是线性的
Input:
3 2 2
0 1 -2
-3 4
1 3 1 2
2 3 2 2
性质 1 :均 大于 0
想让值最小,就选最小的
想让值最大,就选最大的
找出最大值和最小值,内部还是 O(n)
问题 : 使值尽可能大
贪心策略可能有误
*/
/*
在最坏的情况下最大!!
在最坏的情况下最小!!
*/
分割线人
//分割线
RP拉满的玄学大师
#include<bits/stdc++.h>
using namespace std;//玄学
int main(){
freopen("game.in","r",stdin);
freopen("game.out","w",stdout);
srand(time(NULL)*666);
cout<<rand();//核心代码
}//我能过!我能过!!我能过!!!
暴力哥
//得 暴力老哥是吧
#include <iostream>
#include <cstdio>
#include <algorithm>
"我是在什么样的精神状态下码完这堆东西的"
/*
?这不就是小L选择对应区间内 [l2,r2] 范围内最小值最大的行
然后输出这个最小值吗
st表可以直接扫出来 似乎冲了就是60
这真是数据结构题
还得正负分讨
在一堆数里选出一个数使得它乘剩下的数的最小值最大
输出这个最小值
首先如果没有负值可以直接做a的最大值b的最小值就是答案
75分 分挺多
然后 特殊性质2 似乎也比较好写 不用那么多分讨了
好耶不愧是我 半小时码了150+行(暴力)过了样例
我是在什么精神状态下码完这些东西的
期望得分:85
*/
// i hope my sparse table is right
不会见祖宗人
// ji de kai long long !!!!!!!!!!!!!!!!!!!
#include <bits/stdc++.h>
祈祷人
// zyh bless me
freopen("game.in", "r", stdin);
freopen("game.out", "w", stdout);
6k人
for(int i=1;i<=n;++i){
// printf("out[%d]=%d\n",i,out[i]);
// printf("kkkkkk\n");
if(out[i]!=1){
// printf("out[%d]=%d\n",i,out[i]);
// printf("kkkkkk\n");
return 0;
}
}
终极答案人
bfs(1,0,0);
// ans=42;
printf("%d",ans);
多此一举人
#include<iostream>
#include<algorithm>
#include<math.h>
#include<bits/stdc++.h>
using namespace std;
int a[10010],b[100010],c[10010][10010];//A数组,B数组,C数组
int main(){
freopen("game.in","r",stdin);
freopen("game.in","w",stdout);
//注:他似乎爆内存了
似乎是方舟玩家?
#define LL long long
//Arknights:Endfeild
//
新式卖萌人
void check() {
//@_@
}
掩耳盗铃人
const ll N = 15791, inf = 1e18;
ll n, m, q, l1, r1, l2, r2;
ll a[N], b[N], c[N][N];
ll lc = -inf, lcc, qc = inf, qcc, zjbl = inf;
int main() {
freopen("game.in", "r", stdin);
freopen("game.out", "w", stdout);
//cout << "Memory is OK." << endl;
scanf("%lld%lld%lld", &n, &m, &q);
画家
/*
((O A O))
// 0-0 \\
\ w w /
*/
怀疑样例不对人&感谢样例人
//强烈谴责 我怀疑这样例根本不对
//显然在ai=0时本人代码最后一种情况应有0的存在
//若情况属实,希望撤掉数据中的0
//不过说实话也得感谢
//要不是这么强的大样例确实查不出自己的错来
op
//我是神里绫华的狗!!
//绫华祝福我!
freopen("game.in","r",stdin);
freopen("game.out","w",stdout);
scanf("%lld%lld%lld",&n,&m,&q);
卖萌人3.0
//那就打一个我看上去就不行的邻接矩阵吧
//啊啊啊,到底怎么跑dij啊啊啊啊啊,我好难过
//咦,我把样例画出来了,好像一棵树
//似乎,,似乎只有样例一是树
//想求最短公共链。
struct tree
{
long long son[666];
long long mon;
}tree[4*15000];
int lowbit(int n)//忘了lowbit怎么写了。。。
{
return n&-n;
}
//我真的很想跑dij
//求求了,让我顿悟吧,
long long bfs(long long sta, long long end,long long depth)//呜呼,广搜来啦,哒哒哒
{
depth++;
//cout<<"第 "<<depth<<" 次"<<endl;
if(fuwu[sta][end]!=0||fuwu[end][sta])//这里是可爱的边界呀,该怎么写呢?
{
return fuwu[sta][end];//是这样返回嘛,布吉岛QAQ
}
for(int i=1;i<=n;i++)
{//如何让她到达目标服务器呀,(可怜兮兮 /dk
if(fuwu[sta][i]!=0||fuwu[i][sta]!=0)
minans+=bfs(i,end,depth);
}
return 0;
}
蒟蒻发声
int u,v;
//这啥呀,蒟蒻发声
//呜呜呜
码农
//Made in Houraisan
//A problem for farmers....
//I need at least an hour, but it worth it.
时间管理大师
卡时人
for (auto D : G[C]) {
if (D == 1) continue;
if (D == C) continue;
if (D == B) continue;
if (D == A) continue;
if (f[D][1] <= (k + 1)) {
ans = max(ans, a[A] + a[B] + a[C] + a[D]);
}
if (clock() - st >= 1800) {
cout << ans << '\n';
exit(0);
}
}
调逝人
ll D(int u, int lca, int v) {
f[1] = a[u]; int i = 2; u = fa[u]; print(f[1], 0);
while(u != fa[lca]) {
rep(j, 1, k) if (i - j > 0) f[i] = Min(f[i], f[i - j]);
f[i] += a[u];print(f[i], 0); i++; u = fa[u];
}
while(tp) {
rep(j, 1, k) if (i - j > 0) f[i] = Min(f[i], f[i - j]);
f[i] += a[stk[tp--]]; print(f[i], 0); i++;
}
return f[i - 1];
}
佛伯乐人
#define FBI_OPENTHEDOOR(x, y) freopen(#x ".in", "r", stdin), freopen(#y ".out", "w", stdout)
小黑子
cout<<"I am ikun!!!";
//鸡你太美
//别黑我们哥哥了
//除非你不吃我哥哥下的鸡蛋
中西结合
//but the changshu is a little big,mebey i need kachang
#include<cstdio>
#include<algorithm>
晚安人
freopen("transmit.in","r",stdin);
freopen("transmit.out","w",stdout);
cout<<"goodbye~";
return 0;