云剪贴板

唉,咋啥都 ban 了

缺省源

{
   "Print to console": {
   	"prefix": "#include",
   	"body": [
   		"#include <iostream>",
   		"#include <cstdio>",
   		"#include <cmath>",
   		"#include <algorithm>",
   		"#include <cstring>",
   		"#define frer freopen(\"in.in\",\"r\",stdin);",
   		"#define frew freopen(\"out.out\",\"w\",stdout);",
   		"#define int long long",
   		"",
   		"inline int MAX(int a,int b){return a>b?a:b;}",
   		"inline int MIN(int a,int b){return a<b?a:b;}",
   		"inline void SWAP(int &a,int &b){a^=b^=a^=b;}",
   		"inline int read()",
   		"{",
   		"    int num=0,fl=1;char c=getchar();",
   		"    while(c <'0'||c >'9'){",
   		"        if(c=='-') fl=-1;",
   		"        c=getchar();",
   		"    }",
   		"    while(c >='0'&&c <='9'){",
   		"        num=(num<<3)+(num<<1)+(c^48);",
   		"        c=getchar();",
   		"    }",
   		"    return num*fl;" ,
   		"}",
   		"signed main()",
   		"{",
   		"    ",
   		"}"
   	],
   	"description": "I Love intR"
   }
}
#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <unordered_map>
#define frer freopen("in.in","r",stdin);
#define frew freopen("out.out","w",stdout);
#define int long long
const int N=1e3+10;
inline int MAX(int a,int b){return a>b?a:b;}
inline int MIN(int a,int b){return a<b?a:b;}
inline void SWAP(int &a,int &b){a^=b^=a^=b;}
inline int read()
{
    int num=0,fl=1;char c=getchar();
    while(c <'0'||c >'9'){
        if(c=='-') fl=-1;
        c=getchar();
    }
    while(c >='0'&&c <='9'){
        num=(num<<3)+(num<<1)+(c^48);
        c=getchar();
    }
    return num*fl;
}
int n;
int fa[N];
int getFa(int x)
{
    if(fa[x]==x)return x;
    return getFa(fa[x]);
}
inline void init()
{
    n=read();
    for(int i = 1;i <= n;i++) fa[i]=i;
    for(int i = 1;i <= n;i++){
        int k=read();
        for(int j = 1;j <= k;j++){
            int x=read();
            fa[getFa(x)]=getFa(i);
        }
    }
}
signed main()
{
    frer;frew;
    init();
    
}

#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#define frer freopen("in.in","r",stdin);
#define frew freopen("out.out","w",stdout);
#define int long long
inline int MAX(int a,int b){return a>b?a:b;}
inline int MIN(int a,int b){return a<b?a:b;}
inline void SWAP(int &a,int &b){a^=b^=a^=b;}
inline int read()
{
    int num=0,fl=1;char c=getchar();
    while(c <'0'||c >'9'){
        if(c=='-') fl=-1;
        c=getchar();
    }
    while(c >='0'&&c <='9'){
        num=(num<<3)+(num<<1)+(c^48);
        c=getchar();
    }
    return num*fl;
}
int T;
string s;
int d;
signed main()
{
    T=read();
    while(T--){
        cin>>s;
        d=read();
    }
}s

关于博客密码

全数字,与恋恋有关


另:洛天依的鼠标垫真好看🥰🥰🥰

posted @ 2023-11-27 14:37  tkt  阅读(51)  评论(3编辑  收藏  举报