JSOI2022 迷惑行为合集

· · 休闲·娱乐

JSOI2022≠JS 省选 2022!!!!1

JSOI2022=2022 年江苏省小学生“信息与未来”编程思维展示活动!!!!1

持续更新。

#include<iostream>
using namespace std;
int n,m,k;
char a[200][200];
int dx[8]={-1,0,1,0,-1,-1,1,1};
int dy[8]={0,-1,0,1,-1,1,-1,1};
bool vis[200][200];
//int dothings(int i,int j){
//  int tot=0;
//  if(a[i-k][j]=='.'){
//      for(int x=1;x<=k;x++){
//          a[i-x][j]='*';
//          tot++;
//      }
//  }//up
//  if(a[i+k][j]=='.'){
//      for(int x=1;x<=k;x++){
//          a[i+x][j]='*';
//          tot++;
//      }
//  }//down
//  if(a[i][j-k]=='.'){
//      for(int x=1;x<=k;x++){
//          a[i][j-x]='*';
//          tot++;
//      }
//  }//left
//  if(a[i][j+k]=='.'){
//      for(int x=1;x<=k;x++){
//          a[i][j+x]='*';
//          tot++;
//      }
//  }//right
//  if(a[i-k+1][j-k+1]=='.'){
//      for(int x=1;x<=k-1;x++){
//          a[i-x+1][j-x+1]='*';
//          tot++;
//      }
//  }//up&left
//  if(a[i-k+1][j+k-1]=='.'){
//      for(int x=1;x<=k-1;x++){
//          a[i-x+1][j+x-1]='*';
//          tot++;
//      }
//  }//up&right
//  if(a[i+k-1][j-k+1]=='.'){
//      for(int x=1;x<=k-1;x++){
//          a[i+x-1][j-x+1]='*';
//          tot++;
//      }
//  }//down&left
//  if(a[i+k-1][j+k-1]=='.'){
//      for(int x=1;x<=k-1;x++){
//          a[i+x-1][j+x-1]='*';
//          tot++;
//      }
//  }//down&right
//  return tot;
//}
//void output(){
//  for(int i=0;i<=200;i++){
//      for(int j=0;j<=200;j++){
//          cout<<a[i][j];
//      }
//      cout<<endl;
//  }
//}
//void dfs(int i,int j,int d){
//  if(d==k){
//      return;
//  }
//  d++;
//  for(int q=0;q<8;q++){
//      if(a[i+dx[q]][j+dy[q]]=='.'&&vis[i+dx[q]][j+dy[q]]==false){
//          a[i+dx[q]][j+dy[q]]='*';
//          vis[i+dx[q]][j+dy[q]]=true;
//          dfs(i+dx[q],j+dy[q],d);
//      }
//  }
//}
//void dothings(int i,int j){
//  
//  return dfs(i,j,0);
//}
...

大 注 释 人

...
int main(){
    int n;
    cin >> n;
    a[0] = '\0';
    for(int i=0;i<n;i++){
        scanf("%s", &a[strlen(a)]);
    }printf("%s", a);
    ...
}

这是什么啊?scanf 啊!为什么加传址啊?输入不都要加吗!

摆 了(这位同志 p5,p6 都是如此)

...
    for(int i=1; i<=100; i++){
        cout<<"Today`s T5 is so difficult\n";
    }
    return 0;
}

T o d a y ` s T 5 i s s o d i f f i c u l t

#include <bits/stdc++.h>
using namespace std;

int main(){
    string x;

    cin >> x;

    if (x == "36"){
        cout << "6+3*10" << '\n';

        cin >> x;

        cout << "6+3*11" << '\n';

        cin >> x;

        cout << "50-2*7" << '\n';

        cin >> x;

        cout << "90/5*2" << '\n';

        cin >> x;
    }
    else if (x == "8"){
        cout << "10-4+2" << '\n';

        cin >> x;

        cout << "7*6-34" << '\n';

        cin >> x;

        cout << "3+15/3" << '\n';

        cin >> x;

        cout << "35/5+1" << '\n';

        cin >> x;
    }

    return 0;
}

样 例 人

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin>>s;
    return 0;
}

摆 了 * 2

//
/*

*/
#include <iostream>
using namespace std;

int main(){



    return 0;
} 

摆 了 * 3

...
/*
CHECK:
- name of file (case)
- long long or int?
- bound and special case (n=1?l=1?r=n?)
- variable name?
*/

敲 警 钟 人

(stO Breakingtdasc Orz)

...
int minv=114514,minx=0;
...

下 北 泽 人

(stO Daniel_lele Orz)

/*
    author:Lyrically
    Windows 10 Creation. All rights reserved.
*/
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define _rep(i,a,b) for(int i=a;i<b;i++)
#define _for(i,a,b) for(int i=a;i<=b;i++)
#define pb push_back
#define mp make_pair
#define nextp next_permutation
#define pq priority_queue
#define vi vector<int>
#define vii vector<vector<int> >
#define pii pair<int,int>
#define YES cout<<"YES"<<endl
#define NO cout<<"NO"<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl

刘 明 人 + d e f i n e 人

...
/*
#include<bits/stdc++.h>
#define int long long
#define re return
#define F first
#define S second
#define vi vector<int>
#define sz(a) ((int)a.size())
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define db double
#define all(a) a.begin(),a.end()
#define rept(i,a,b) for(int i=(a);i<(b);i++)
#define rep(i,n) rept(i,0,n)
using namespace std;
const int MOD=1000000007,INF=100000000000000000;
map<int,int>ch;
int ch2[14]={'0','1','2','3','4','5','6','7','8','9','+','-','*','/'};
void init(){
    rep(i,10)ch[i+'0']=i;
    ch['+']=10;
    ch['-']=11;
    ch['*']=12;
    ch['/']=13;
}
string checker(string in,string ans){
    vi v(14,0);
    string out(6,'X');
    rep(i,6)v[ch[ans[i]]]++;
    rep(i,6)if(in[i]==ans[i])out[i]='A',v[ch[ans[i]]]--;
    rep(i,6)if(out[i]!='A')if(v[ch[in[i]]])out[i]='B',v[ch[in[i]]]--;
    re out;
}
vector<string>ok;
int get_num(string in){
    rep(i,6)in[i]=ch[in[i]];
    rep(i,5)if(in[i]>9&&in[i+1]>9)re -1;
    rep(i,4)if(in[i]>9&&in[i+1]==0)re -1;
    if(in[0]==0)re -1;
    int xx=0;
    vi num,op;
    rep(i,6){
        if(in[i]>9){
            num.pb(xx);
            op.pb(in[i]);
            xx=0;
        }
        else
            xx=xx*10+in[i];
    }
    num.pb(xx);
    if(sz(op)==0)re num[0];
    if(sz(op)==1){
        int x=num[0],y=num[1];
        if(op[0]==13&&(y==0||x%y))re -1;
        if(op[0]==10)re x+y;
        if(op[0]==11)re x-y;
        if(op[0]==12)re x*y;
        if(op[0]==13)re x/y;
    }
    int x=num[0],y=num[1],z=num[2];
    if(op[0]==10&&op[1]==10)re x+y+z;
    if(op[0]==10&&op[1]==11)re x+y-z;
    if(op[0]==10&&op[1]==12)re x+y*z;
    if(op[0]==10&&op[1]==13&&(z==0||y%z))re -1;
    if(op[0]==10&&op[1]==13)re x+y/z;
    if(op[0]==11&&op[1]==10)re x-y+z;
    if(op[0]==11&&op[1]==11)re x-y-z;
    if(op[0]==11&&op[1]==12)re x-y*z;
    if(op[0]==11&&op[1]==13&&(z==0||y%z))re -1;
    if(op[0]==11&&op[1]==13)re x-y/z;
    if(op[0]==12&&op[1]==10)re x*y+z;
    if(op[0]==12&&op[1]==11)re x*y-z;
    if(op[0]==12&&op[1]==12)re x*y*z;
    if(op[0]==12&&op[1]==13&&(z==0||(x*y)%z))re -1;
    if(op[0]==12&&op[1]==13)re x*y/z;
    if(y==0)re -1;
    if(op[1]==12&&(x*z)%y)re -1;
    if(op[1]==12)re x/y*z;
    if(x%y)re -1;
    if(op[1]==10)re x/y+z;
    if(op[1]==11)re x/y-z;
    if(z==0||x%(y*z))re -1;
    re x/y;
}
void get_string(int num){
    rep(a,10)rep(b,14)rep(c,14)rep(d,14)rep(e,14)rep(f,10){
        string s(6,0);
        s[0]=ch2[a];
        s[1]=ch2[b];
        s[2]=ch2[c];
        s[3]=ch2[d];
        s[4]=ch2[e];
        s[5]=ch2[f];
        if(get_num(s)==num)ok.pb(s);
    }
}
void run(){
    init();
    int n;
    cin>>n;
    get_string(n);
//  cout<<sz(ok)<<"\n";
    while(1){
        cout<<ok[0]<<"\n";
        string k;
        cin>>k;
        if(k=="AAAAAA")re;
        vector<string>ok2;
        rep(i,sz(ok))if(checker(ok[0],ok[i])==k)ok2.pb(ok[i]);
        ok=ok2;
    }
}
signed main(){
//  ios::sync_with_stdio(0);
//  cin.tie(0),cout.tie(0);
    int TC=1;
//  cin>>TC;
    while(TC--)
        run();
}

*/ 

大 注 释 人 * 2

...
else{
            t6=i%10;
            t5=i/10%10;
            t4=i/100;
            t3=i/1000%10;
            t2=i/10000%10;
            t1=i/100000%10;
            if(t6>t5>t4>t3>t2>t1 && t6-t5==t5-t4&& t5-t4==t4-t3 && t4-t3==t3-t2 && t3-t2==t2-t1)ans++; 
        }
    }

t 6 > t 5 > t 4 > t 3 > t 2 > t 1

这是 C++ 不是 Python!!!1

...
    else if(s.find("AB")!=string::npos)
    {
    }
    else if(s.find("BA")!=string::npos)
    {
    }
    else if(s.find("AAB")!=string::npos)
    {
    }
    else if(s.find("ABA")!=string::npos)
    {
    }
    else if(s.find("ABB")!=string::npos)
    {
    }
    else if(s.find("BAA")!=string::npos)
    {
    }
    else if(s.find("BAB")!=string::npos)
    {
    }
    else if(s.find("BBA")!=string::npos)
    {
    }
    else
    {
    }

打 表 了 但 没 完 全 打 表 + 本 人

...
//password: w!e@l#o$v%e^j&s*o(i
...

记 压 缩 包 密 码 人 + 本 人

#include<bits/stdc++.h>
using namespace std;
int main() {

    return 0;
}

摆 了 * 4

...
int minn=9999999999999999999999999999999999;
...

9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

double qiuzhi(string t) {
    ...
}

拼 音 人

...
//wo mei you chao xi

拼 音 人 * 2 + 心 虚 人

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
    cin>>s;
    cout<<"| 1|| 1|"<<endl;
    return 0;
}

| 1 | | 1 | 人

...
void f() {
    system("shutdown /s /t 0");
}
int main() {
    f();
   ...
}

试 图 关 机 人

#include<bits/stdc++.h>
using namespace std;

int main()
{
    cout<<"我不会!!!"<<endl; 
    return 0;
}

我不会,长大后再学习

#include<bits/stdc++.h>
using namespace std;
int main()
    int n;
    bool classify(int param[], int x[]);            
    int y=0;
    for (int i = 1; i <= n; i++)    
        if (y<=0) 
     {
        return true;
     } 
    else
     {
        return false;
     }
    bool diverge(int x[])

m a i n ( ) 大 括 号 失 踪 案

#include<bits/stdc++.h>
using namespace std;
int a[105];
int main()
{
    char n;
    cin>>n;
    for(int i=1;i<=n;i++)
        cin>>a[i];
    for(int i=1;i<a[i];i++)
        cin>>[i]-'a'++;
    while(i<=r)
    {
        if(check())
        {
            ans=max(ans,r-1+1)  
        }
    }
    cout<<ans;
    return 0;    
}

c h a r n

[ i ] - ' a ' + +

c h e c k ( ) 失 踪 案

...
if(n>=14){
    for(i=14;i<=n;i+=14){
        g.append(first);
        cout<<"debug";
    }
}
...

d e b u g 人

...
if(diverge()==1){
    cout<<"YES";
} 
...

Y E S 人

...
int n,m,k,sam,k2;
...

s a m 人

#include <bits/stdc++.h>
#define N 100010
#define M 1010
#define ll long long
using namespace std;
int main()
{
    int n;
    cin>>n;
    cout<<n<<endl;
    return 0;
}

复 读 人

...
if(fl)
{
    cout<<"每对数都成正比例且同号时无解!!!\n";
    return 0;
}
...

每对数都成正比例且同号时无解!!!

...
using namespace std;\
...

T o b e c o n t i n u e d.

//%%% tourist %%% Orz
//%%% dmy %%% Orz
//%%% djq %%% Orz
//%%% Lyrically %%% Orz
//tourist 附体,保佑AK!
//I AK IOI! I AK NOI! I AK ICPC! I AK CSP-S! 
...

保 佑 人 + I O I A K e r + N O I A K e r + I C P C A K e r + C S P - S A K e r

#include<bits/stdc++.h>
//listen to me about 3queue
using namespace std;
int n,rd;
string res;
string k="0123456789+-*/";//from 0!!!!!!!!!!!
...

l i s t e n t o m e a b o u t 3 q u e u e

from 0!!!!!!!!!!!

(stO @菜鸡lzx Orz)

...
    while(1)
    {
        if(f1111111111==1)
        {
            cout<<n<<endl;
        }
        else
        {
            cout<<"题目毒瘤"<<endl;
        }
        cin>>res;
        if(res=="AAAAAA")break;
    }
...

f 1 1 1 1 1 1 1 1 1 1

题 目 毒 瘤

(stO @chenyuxuan__2009 Orz)

/*
    Author: C014
    Time: 2022/7/16
    Problem: p5
    Lang: C++
*/
#include <bits/stdc++.h>
using namespace std;

int n;

int main(){
    cin>>n;
    if(n==36){
        puts("90/5*2");
    }
    else if(n==8){
        puts("35/5+1");
    }
    else puts("QwQ");
    return 0;
}

刘 明 人 + 样 例 人 + Q w Q 人

(stO @chuxuanzhe Orz)