Compare commits

..

2 Commits

Author SHA1 Message Date
2af004b8d0 ? 2020-06-25 19:03:40 +08:00
4ecaabd374 buhui 2020-06-13 10:41:35 +08:00
25 changed files with 432 additions and 16 deletions

3
2055_x_x/Readme.md Normal file
View File

@ -0,0 +1,3 @@
# 标题
* 内容

11
2055_x_x/ce.cpp Normal file
View File

@ -0,0 +1,11 @@
#include<iostream>
using namespace std;
int main(){
for(int i=1;i<=100;i++){
long long ans=1;
for(int j=1;j<=i;j++){
ans*=i;
}
cout<<ans<<endl;
}
}

BIN
2055_x_x/ce.exe Normal file

Binary file not shown.

1
2055_x_x/doc/Readme.md Normal file
View File

@ -0,0 +1 @@
#

6
2055_x_x/main.cpp Normal file
View File

@ -0,0 +1,6 @@
#include <iostream>
using namespace std;
int main()
{
}

BIN
2055_x_x/main.exe Normal file

Binary file not shown.

0
2055_x_x/test/in.txt Normal file
View File

0
2055_x_x/test/in2.txt Normal file
View File

0
2055_x_x/test/in3.txt Normal file
View File

318
2055_x_x/test/out.txt Normal file
View File

@ -0,0 +1,318 @@
## z:\Chao\src\2055_x_x\test\in.txt
2020/06/13 ÖÜÁù 10:37:52.95
1
4
27
256
3125
46656
823543
16777216
387420489
10000000000
285311670611
8916100448256
302875106592253
11112006825558016
437893890380859375
0
-2863221430593058543
-497033925936021504
6353754964178307979
-2101438300051996672
-1595931050845505211
4981753131911086080
8450172506621111015
0
-6776596920136667815
-1123307876295639040
-5278486589563110205
-6845471433603153920
5529354540715494413
2565992168703393792
-4642015662142636065
0
-4053175462519618527
-5296008294479953920
8407224849895527163
0
-4689350456247753643
6543552412563537920
-8795647696940200745
0
-6284992600390200471
4121466560160202752
-4071272324936764365
0
2604998672350111773
512354826357571584
2110287360296998863
0
-2559158286230232783
-6646187150092009472
2823291043684304491
0
-4940275718618612379
2467972595799031808
3030756035345000135
0
4951460147845608313
-6629298651489370112
-145357957422043229
0
2644539488379390509
4611686018427387904
-4675932718989443137
0
7437354637604294721
0
8037740809528595931
0
-8206467232675302283
0
-5821812116355782473
0
-3116162374727926391
0
2435553365352800019
0
5169532022520488509
0
1483551237918615471
0
-3264474685660004015
0
2536461848307888459
0
3792227444683241861
0
1826852818786091687
0
8028209804145959321
0
-1902703244836818301
0
-7924192819420782515
0
-3660930864499998817
0
4593512421086651489
0
-7394533151961528133
0
-----------------------------------------------
Process exited after 210 ms with return value 0
## z:\Chao\src\2055_x_x\test\in2.txt
2020/06/13 ÖÜÁù 10:37:52.95
1
4
27
256
3125
46656
823543
16777216
387420489
10000000000
285311670611
8916100448256
302875106592253
11112006825558016
437893890380859375
0
-2863221430593058543
-497033925936021504
6353754964178307979
-2101438300051996672
-1595931050845505211
4981753131911086080
8450172506621111015
0
-6776596920136667815
-1123307876295639040
-5278486589563110205
-6845471433603153920
5529354540715494413
2565992168703393792
-4642015662142636065
0
-4053175462519618527
-5296008294479953920
8407224849895527163
0
-4689350456247753643
6543552412563537920
-8795647696940200745
0
-6284992600390200471
4121466560160202752
-4071272324936764365
0
2604998672350111773
512354826357571584
2110287360296998863
0
-2559158286230232783
-6646187150092009472
2823291043684304491
0
-4940275718618612379
2467972595799031808
3030756035345000135
0
4951460147845608313
-6629298651489370112
-145357957422043229
0
2644539488379390509
4611686018427387904
-4675932718989443137
0
7437354637604294721
0
8037740809528595931
0
-8206467232675302283
0
-5821812116355782473
0
-3116162374727926391
0
2435553365352800019
0
5169532022520488509
0
1483551237918615471
0
-3264474685660004015
0
2536461848307888459
0
3792227444683241861
0
1826852818786091687
0
8028209804145959321
0
-1902703244836818301
0
-7924192819420782515
0
-3660930864499998817
0
4593512421086651489
0
-7394533151961528133
0
-----------------------------------------------
Process exited after 100 ms with return value 0
## z:\Chao\src\2055_x_x\test\in3.txt
2020/06/13 ÖÜÁù 10:37:52.95
1
4
27
256
3125
46656
823543
16777216
387420489
10000000000
285311670611
8916100448256
302875106592253
11112006825558016
437893890380859375
0
-2863221430593058543
-497033925936021504
6353754964178307979
-2101438300051996672
-1595931050845505211
4981753131911086080
8450172506621111015
0
-6776596920136667815
-1123307876295639040
-5278486589563110205
-6845471433603153920
5529354540715494413
2565992168703393792
-4642015662142636065
0
-4053175462519618527
-5296008294479953920
8407224849895527163
0
-4689350456247753643
6543552412563537920
-8795647696940200745
0
-6284992600390200471
4121466560160202752
-4071272324936764365
0
2604998672350111773
512354826357571584
2110287360296998863
0
-2559158286230232783
-6646187150092009472
2823291043684304491
0
-4940275718618612379
2467972595799031808
3030756035345000135
0
4951460147845608313
-6629298651489370112
-145357957422043229
0
2644539488379390509
4611686018427387904
-4675932718989443137
0
7437354637604294721
0
8037740809528595931
0
-8206467232675302283
0
-5821812116355782473
0
-3116162374727926391
0
2435553365352800019
0
5169532022520488509
0
1483551237918615471
0
-3264474685660004015
0
2536461848307888459
0
3792227444683241861
0
1826852818786091687
0
8028209804145959321
0
-1902703244836818301
0
-7924192819420782515
0
-3660930864499998817
0
4593512421086651489
0
-7394533151961528133
0
-----------------------------------------------
Process exited after 100 ms with return value 0

View File

@ -1,7 +1,9 @@
#include <iostream>
#include<algorithm>
using namespace std;
int n,a[100000]={0};
int mins(){
if(a[n-2]-a[0]==n-2&&a[n-1]-a[n-2]>n-2){
return 2;
@ -19,6 +21,7 @@ int mins(){
}
return n-ans;
}
int main()
{
cin >> n;
@ -28,4 +31,5 @@ int main()
sort(a,a+n);
cout<<mins()<<endl;
cout << max(a[n-2]-a[0],a[n-1]-a[1])-n+2;
return 0;
}

Binary file not shown.

View File

@ -1,28 +1,28 @@
## z:\Chao\src\4081_npeople\test\in.txt
2020/04/10 周五 18:06:23.63
2020/06/13 ÖÜÁù 11:03:12.33
1
2
-----------------------------------------------
Process exited after 330 ms with return value 0
Process exited after 160 ms with return value 0
## z:\Chao\src\4081_npeople\test\In1 (16).txt
2020/04/10 周五 18:06:23.63
2020/06/13 ÖÜÁù 11:03:12.33
2
499999999
-----------------------------------------------
Process exited after 100 ms with return value 0
Process exited after 120 ms with return value 0
## z:\Chao\src\4081_npeople\test\In2 (8).txt
2020/04/10 周五 18:06:23.63
2020/06/13 ÖÜÁù 11:03:12.33
1
1
-----------------------------------------------
Process exited after 100 ms with return value 0
## z:\Chao\src\4081_npeople\test\in2.txt
2020/04/10 周五 18:06:23.63
2020/06/13 ÖÜÁù 11:03:12.33
1
2
-----------------------------------------------
Process exited after 90 ms with return value 0
Process exited after 100 ms with return value 0

Binary file not shown.

View File

@ -1,6 +1,43 @@
#include <iostream>
using namespace std;
int main()
{
std::cout << "Hello Easy C++ project!" << std::endl;
int n, m, rdui[100001] = { 0 }, jiad = 0, fud = 0;
bool dui[100001] = { 0 };
cin >> n >> m;
for (int i = 1; i <= m; i++) {
int yi, er;
char u;
cin >> u >> yi >> er;
if (rdui[yi] == 0 && rdui[er] == 0) {
jiad++;
rdui[yi] = jiad;
rdui[er] = jiad;
}
if (rdui[yi] != 0 && rdui[er] == 0) {
rdui[er] = rdui[yi];
}
if (rdui[yi] == 0 && rdui[er] != 0) {
rdui[yi] = rdui[er];
}
if (rdui[yi] != 0, rdui[er] != 0) {
fud++;
if (dui[rdui[yi]] == 0 && dui[rdui[er]] == 0) {
dui[rdui[er]] = 1;
} else {
if (dui[rdui[yi]] == 1 && dui[rdui[er]] == 1) {
fud--;
} else {
dui[rdui[yi]] = dui[rdui[er]] == 1;
}
}
}
}
int ll = jiad - fud;
cout << "1";
for (int i = 1; i <= ll; i++) {
cout << "0";
}
return 0;
}

Binary file not shown.

View File

@ -1,18 +1,18 @@
## z:\Chao\src\4083_mit\test\in.txt
2020/04/06 周一 12:33:23.89
10
2020/06/13 ÖÜÁù 11:23:05.54
1
-----------------------------------------------
Process exited after 260 ms with return value 0
Process exited after 170 ms with return value 0
## z:\Chao\src\4083_mit\test\In1 (19).txt
2020/04/06 周一 12:33:23.89
2020/06/13 ÖÜÁù 11:23:05.54
1
-----------------------------------------------
Process exited after 190 ms with return value 0
Process exited after 170 ms with return value 0
## z:\Chao\src\4083_mit\test\In2 (12).txt
2020/04/06 周一 12:33:23.89
2020/06/13 ÖÜÁù 11:23:05.54
1
-----------------------------------------------
Process exited after 210 ms with return value 0
Process exited after 170 ms with return value 0

3
Template copy/Readme.md Normal file
View File

@ -0,0 +1,3 @@
# 标题
* 内容

View File

@ -0,0 +1 @@
#

23
Template copy/main.cpp Normal file
View File

@ -0,0 +1,23 @@
#include<iostream>
using namespace std;
bool ce[20001]={0};
int main(){
int n;
int a[101],ans=0;
cin>>n;
for(int i=1;i<=n;i++){
cin>>a[i];
ce[a[i]]=1;
}
for(int i=1;i<=n-1;i++){
for(int j=i+1;j<=n;j++){
int now=a[i]+a[j];
if(ce[now]==1){
ans++;
ce[now]=0;
}
}
}
cout<<ans;
return 0;
}

BIN
Template copy/main.exe Normal file

Binary file not shown.

View File

@ -0,0 +1,2 @@
100
7855 581 4513 9204 9770 9321 1016 6839 2710 4343 9224 2006 863 7705 2087 3002 6409 4198 9950 7360 1296 3947 740 7049 1660 1726 540 9635 8055 6799 4978 5593 2465 5711 7953 2663 2771 8789 3865 7457 1363 3663 5823 723 1960 4886 6646 9259 8831 5910 1277 7031 5597 6316 4488 5097 8710 5936 531 1842 13 1877 8868 8622 3036 351 65 8508 9574 4420 3202 3681 5660 1878 408 8701 93 1424 3886 6286 6961 911 9343 8356 2536 1193 677 9502 534 7280 2161 163 2477 7429 552 5400 5196 6952 4923 5515

View File

View File

View File

@ -0,0 +1,7 @@
## z:\Chao\src\Template\test\in.txt
2020/03/14 ÖÜÁù 11:41:28.68
Hello Easy C++ project!
-----------------------------------------------
Process exited after 200 ms with return value 0