跳到正文

休闲·娱乐

JS-CSP2022-J 迷惑行为

Jorisy约 3 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月23日
篇幅
约 3 分钟

版本

  1. v1当前

不定期更新。


C++
...
/*
 * Check
 * Overflow && bound
 * freopen , NOT FEROPEN
 * file name
 * RP++
*/

检 查 人 + R P 人


C++
#include<bits/stdc++.h>
using namespace std;
int n,k;
int main()
{
	freopen("point.in","r",stdin);
	freopen("point.out","w",stdout);
	cin>>n>>k;
	cout<<n+k;
	return 0;
}

瞎 做 人


大 样 例 人


小 样 例 人


C++
#include <bits/stdc++.h>
using namespace std;
int main(){
	freopen("point.in","r",stdin);
	freopen("point.out","w",stdout);
	cout<<true;
	return 0;
}

我 也 不 知 道 我 在 干 什 么


C++
...
/*
Things you should check:
1. long long
2. Memory
3. Time
4. freopen
5. file name
*/

检 查 人 * 2


C++
...
/* Attention:
- freopen?
- int or ll?
- cin or scanf or read()?
- TLE or MLE or CE?
- No solution then force/greedy!
CSP2022-J2 rp++!
-- Luogu @_JYqwq_ (uid 400269)
*/

检 查 人 * 3 + R P 人 * 2 + 本 人


C++
...
 work(string str,int op){
 	if(str.size()==5||op==u){
 		if(pd(str))
	 }
	for(int i=1;i<=u;i++){
		if(op<u){
		string k=st.substr(a[op+1][1],a[op+1][2]);
		work(k,op+1);
	}


}
...

未 写 完 的 代 码


C++
#include<bits/stdc++.h>
using namespace std;
int a[100001];
int main(){
    freopen("decode.in","r",stdin);
    freopen("decode.out","w",stdout);
    ...
    cout<<"No";
    ...
	return 0;
}

N o 人

原文