diff --git a/2717_duijue/Readme.md b/2717_duijue/Readme.md new file mode 100644 index 0000000..b4f8d75 --- /dev/null +++ b/2717_duijue/Readme.md @@ -0,0 +1,3 @@ +# 标题 + +* 内容 \ No newline at end of file diff --git a/2717_duijue/doc/Readme.md b/2717_duijue/doc/Readme.md new file mode 100644 index 0000000..4e768b5 --- /dev/null +++ b/2717_duijue/doc/Readme.md @@ -0,0 +1 @@ +# \ No newline at end of file diff --git a/2717_duijue/doc/瀵瑰喅.pdf b/2717_duijue/doc/瀵瑰喅.pdf new file mode 100644 index 0000000..c649e4e Binary files /dev/null and b/2717_duijue/doc/瀵瑰喅.pdf differ diff --git a/2717_duijue/main.cpp b/2717_duijue/main.cpp new file mode 100644 index 0000000..224edfe --- /dev/null +++ b/2717_duijue/main.cpp @@ -0,0 +1,36 @@ +#include +#include +using namespace std; +int main() +{ + int ge,sai,pan[101]={0}; + bool a[101][101]={0}; + scanf("%d%d",&ge,&sai); + for(int i=1;i<=sai;i++){ + int yin,shu; + scanf("%d%d",&yin,&shu); + a[shu][yin]=1; + } + for(int i=1;i<=ge;i++){ + int now=1; + for(int j=1;j<=ge;j++){ + if(a[i][j]==1){ + now++; + } + } + if(pan[now]==0){ + pan[now]=1; + }else{ + pan[now]=-1; + cout<