diff --git a/2717_duijue/new.cpp b/2717_duijue/new.cpp new file mode 100644 index 0000000..06e9465 --- /dev/null +++ b/2717_duijue/new.cpp @@ -0,0 +1,32 @@ +#include +using namespace std; +int main(){ + int n,m; + cin>>n>>m; + bool won[101][101]={0},lost[101][101]={0};//我赢了谁,我输给谁 + for(int i=1;i<=m;i++){ + int yin,shu; + cin>>yin>>shu; + + won[yin][shu]=1; + for(int j=1;j<=n;j++){ + if(lost[yin][j]==1){ + won[j][shu]=1; + } + } + + lost[shu][yin]=1; + for(int j=1;j<=n;j++){ + if(won[shu][j]==1){ + lost[j][yin]=1; + } + } + } + + int sheng[101]={0},bai[101]={0}; + for(int i=1;i<=n;i++){ + for(int j=1;j<=n;j++){ + + } + } +} \ No newline at end of file diff --git a/2761_apnum_large/main.cpp b/2761_apnum_large/main.cpp index 9286d5d..418233b 100644 --- a/2761_apnum_large/main.cpp +++ b/2761_apnum_large/main.cpp @@ -1,12 +1,32 @@ #include using namespace std; -void doit(int n){ - +int su[10]={2,3,5,7,11,13,17,19,23,29}; +int ge[10]={0}; +long long allans,allge=0; +void doit(int n,int now){ + if(n==1){ + long long ans=1; + for(int i=0;i<=9;i++){ + ans=ans*(ge[i]+1); + } + if(allge>n){ - doit(n); + doit(n,0); } } diff --git a/2761_apnum_large/main.exe b/2761_apnum_large/main.exe index fc4df42..216dd85 100644 Binary files a/2761_apnum_large/main.exe and b/2761_apnum_large/main.exe differ diff --git a/2761_apnum_large/test/in.txt b/2761_apnum_large/test/in.txt index e69de29..9a03714 100644 --- a/2761_apnum_large/test/in.txt +++ b/2761_apnum_large/test/in.txt @@ -0,0 +1 @@ +10 \ No newline at end of file diff --git a/2761_apnum_large/test/in2.txt b/2761_apnum_large/test/in2.txt index e69de29..2edeafb 100644 --- a/2761_apnum_large/test/in2.txt +++ b/2761_apnum_large/test/in2.txt @@ -0,0 +1 @@ +20 \ No newline at end of file diff --git a/2761_apnum_large/test/in3.txt b/2761_apnum_large/test/in3.txt index e69de29..c5b431b 100644 --- a/2761_apnum_large/test/in3.txt +++ b/2761_apnum_large/test/in3.txt @@ -0,0 +1 @@ +50 \ No newline at end of file diff --git a/2761_apnum_large/test/out.txt b/2761_apnum_large/test/out.txt index 35a20e6..6d24366 100644 --- a/2761_apnum_large/test/out.txt +++ b/2761_apnum_large/test/out.txt @@ -1,7 +1,18 @@ -## z:\Chao\src\Template\test\in.txt -2020/03/14 周六 11:41:28.68 -Hello Easy C++ project! - +## z:\Chao\src\2761_apnum_large\test\in.txt +2020/05/07 周四 18:26:44.29 +4 ----------------------------------------------- -Process exited after 200 ms with return value 0 +Process exited after 150 ms with return value 0 + +## z:\Chao\src\2761_apnum_large\test\in2.txt +2020/05/07 周四 18:26:44.29 +6 +----------------------------------------------- +Process exited after 90 ms with return value 0 + +## z:\Chao\src\2761_apnum_large\test\in3.txt +2020/05/07 周四 18:26:44.29 +6 +----------------------------------------------- +Process exited after 100 ms with return value 0