Skip to content

Commit 3de668a

Browse files
committed
20-12-30 backup
1 parent 43b1dd5 commit 3de668a

File tree

15 files changed

+424
-12
lines changed

15 files changed

+424
-12
lines changed

EEG_process/DE_acc.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
67.315300 65.261300
2+
64.252300 68.180200
3+
33.549500 61.441400
4+
53.585600 63.387400
5+
50.918900 72.252300
6+
55.711700 58.955000
7+
59.964000 78.738700
8+
60.973000 74.090100
9+
87.099100 84.756800
10+
78.414400 92.360400
11+
74.162200 77.765800
12+
64.216200 74.666700
13+
54.702700 51.711700
14+
54.198200 55.099100
15+
49.369400 53.549500
16+
77.513500 69.549500
17+
79.531500 85.837800
18+
75.531500 70.342300
19+
62.738700 72.973000
20+
90.090100 90.630600
21+
59.063100 55.387400
22+
80.000000 78.846800
23+
60.973000 74.162200
24+
87.495500 77.657700
25+
76.756800 76.144100
26+
86.774800 86.702700
27+
70.594600 72.576600
28+
69.225200 78.846800
29+
61.801800 77.873900
30+
64.144100 61.729700
31+
69.693700 78.270300
32+
93.045000 89.837800
33+
92.036000 91.387400
34+
64.072100 72.072100
35+
53.801800 65.801800
36+
91.783800 89.045000
37+
75.459500 90.270300
38+
72.684700 90.991000
39+
92.648600 89.621600
40+
62.018000 74.234200
41+
62.054100 56.792800
42+
69.765800 74.918900
43+
71.243200 80.684700
44+
92.108100 93.441400
45+
86.955000 94.810800

EEG_process/DE_average_acc.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
55.039033 53.405400 69.345367 72.264267 52.756767 77.525500 70.630633 76.156167 78.042067 65.057033 84.924900 69.885900 80.264267 64.612633 83.435433
2+
64.960967 64.864900 79.195200 81.597633 53.453433 75.243200 72.997000 76.888900 78.474467 72.816800 86.498500 75.639633 90.294300 68.648633 89.645633

EEG_process/FD_acc.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
79.0270 81.0870 81.6393 82.0290 81.6216 77.4054 78.6957 80.3279 80.1449 81.0811
2+
69.2973 69.7826 70.2732 70.8696 69.0090 67.6757 68.3333 67.9781 68.4058 66.8468
3+
67.7477 69.4928 70.0546 70.0000 69.0090 65.8739 67.8986 65.9016 66.8116 65.4054
4+
61.4414 61.4493 61.4208 61.3043 59.4595 60.7568 59.9275 57.9235 58.2609 58.3784
5+
75.3153 75.7246 75.1913 74.2029 72.6126 74.7748 74.7826 72.8962 73.9130 72.6126
6+
58.7748 57.6087 55.1913 54.6377 54.0541 58.3423 56.5217 53.8798 54.3478 52.2523
7+
66.2342 65.7971 66.6667 65.3623 67.7477 69.1892 68.5507 68.8525 66.3768 67.5676
8+
75.3153 75.2899 74.8634 74.7826 74.5946 74.1261 75.2899 77.3770 77.1014 74.9550
9+
78.1622 76.4493 74.5355 75.2174 75.1351 76.9009 75.3623 74.6448 74.2029 74.2342
10+
78.8468 78.8406 77.5956 77.2464 77.2973 79.4955 80.0000 80.1093 78.2609 78.7387
11+
63.4955 63.5507 64.0437 63.4783 65.9459 64.2883 63.4058 66.1202 62.6087 62.1622
12+
60.3604 59.2029 58.3607 55.0725 56.2162 62.6667 59.0580 60.6557 57.6812 56.3964
13+
52.3964 48.9130 44.4809 41.7391 41.2613 50.9189 49.0580 44.3716 42.7536 44.8649
14+
50.1982 49.7826 51.0383 51.5942 52.4324 51.6757 53.5507 54.2077 56.8116 58.1982
15+
56.6847 57.8986 57.3770 57.5362 56.5766 54.9910 54.3478 56.1749 57.2464 55.3153
16+
72.2162 73.1884 72.8962 73.1884 74.2342 73.4054 73.6957 73.4426 73.3333 73.1532
17+
71.8198 70.8696 72.3497 71.1594 70.9910 69.5856 69.7101 71.2568 69.7101 70.0901
18+
70.7027 70.7246 71.8033 72.0290 72.7928 69.2252 69.3478 69.8361 70.4348 71.1712
19+
84.8288 84.9275 84.9180 85.5072 82.5225 83.9640 83.6232 82.7322 82.7536 82.7027
20+
85.4054 87.0290 87.2131 86.5217 85.7658 84.8649 86.3768 86.5574 86.6667 85.2252
21+
64.5766 63.7681 63.1694 62.4638 65.9459 64.1441 63.1884 63.8251 64.0580 64.3243
22+
75.8198 75.2899 74.3169 74.0580 75.8559 76.7207 75.0000 73.9891 74.4928 76.3964
23+
77.3333 76.3768 77.8142 77.3913 76.9369 75.9279 75.4348 76.5027 77.1014 76.5766
24+
79.5676 79.2754 77.7049 76.3768 76.7568 78.8108 77.7536 78.2514 77.5362 77.6577
25+
74.5946 75.2174 74.8634 74.6377 74.4144 74.3423 74.1304 73.6612 73.4783 73.5135
26+
73.4054 74.7101 75.3005 74.9275 73.8739 77.5856 78.8406 78.3607 77.2464 76.3964
27+
65.1171 66.8116 65.9016 64.2029 62.5225 73.2252 73.4783 73.4426 72.1739 70.6306
28+
67.3514 66.9565 63.3880 62.7536 61.9820 72.2523 71.6667 70.2732 67.9710 68.6486
29+
65.0811 62.7536 60.2186 58.9855 59.0991 66.4144 65.3623 63.9344 61.7391 60.0000
30+
73.2973 72.2464 71.6940 71.7391 70.4505 72.3964 71.8841 71.6940 71.7391 68.6486
31+
77.4775 80.0000 80.3279 81.4493 79.4595 79.7117 80.6522 80.0000 79.5652 77.8378
32+
77.8378 77.3913 76.1749 75.6522 74.9550 81.1532 79.0580 77.9235 76.0870 76.0360
33+
82.3063 83.4783 84.2623 82.4638 83.6036 82.7027 80.8696 81.8579 80.0000 79.2793
34+
73.2252 75.2899 74.8634 73.1884 72.2523 74.8829 73.9130 72.4590 71.1594 72.4324
35+
56.6486 55.2899 53.1148 51.5942 48.6486 58.6306 56.6667 57.1585 53.6232 52.9730
36+
75.3874 75.4348 75.3005 75.0725 75.1351 75.6396 75.0725 73.7705 72.7536 72.7928
37+
62.8829 62.2464 60.6557 59.4203 55.3153 66.2342 64.9275 64.9180 64.2029 60.1802
38+
80.2162 80.8696 81.5301 81.3043 82.1622 81.5856 81.8116 82.4044 84.4928 82.5225
39+
79.3514 79.2029 80.1093 79.1304 78.7387 79.0270 80.4348 80.3279 79.5652 80.0000
40+
79.6396 78.8406 77.9235 78.1159 78.0180 80.5766 80.3623 80.6557 79.4203 82.7027
41+
57.3333 58.4783 57.4863 57.6812 60.7207 59.2072 62.2464 62.7322 63.7681 65.4054
42+
59.1351 59.7826 58.0328 59.5652 57.2973 58.4865 60.2174 58.4699 60.2899 57.8378
43+
97.2252 97.3188 97.4863 96.3768 96.9369 96.1802 96.5942 97.0492 97.1014 96.9369
44+
89.1171 88.6957 89.6175 89.2754 90.9910 87.8919 88.9130 88.5246 88.4058 88.8288
45+
95.7477 95.5072 95.8470 96.6667 96.5766 94.6306 95.5072 95.0820 95.6522 96.7568

EEG_process/FD_average_acc.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
72.024000 65.177167 73.237233 67.567567 53.093100 71.579567 78.270267 77.573567 71.039033 68.576600 79.207200 68.420400 74.150167 65.369333 94.030000
2+
73.454133 64.927533 72.512100 67.198067 52.198067 71.594200 78.574867 76.980700 72.246367 67.318833 80.289867 68.671533 74.106300 65.700500 93.840567
3+
73.989033 63.934467 72.021867 66.666667 50.965400 72.349733 78.433500 76.612000 72.021833 65.100200 80.255033 67.759567 74.098367 64.480867 94.316933
4+
74.299533 63.381633 71.787433 65.265733 50.289833 72.125600 78.164233 75.942033 71.256033 64.492733 79.855100 66.618367 73.285000 65.120767 94.106300
5+
73.213200 62.042067 72.492467 66.486467 50.090100 72.672667 78.078067 76.516533 70.270267 63.843867 79.339367 65.345333 72.072067 65.345333 94.834833
6+
70.318333 64.624633 73.405400 68.816833 52.528533 70.738733 77.657667 77.153133 75.051033 70.354367 81.189200 69.717700 75.615600 66.090100 92.900900
7+
71.642533 63.743933 73.067633 67.487933 52.318833 70.917867 77.729467 76.062800 75.483100 69.637700 80.193267 68.550733 75.724633 67.608700 93.671467
8+
71.402533 61.566500 73.624767 68.961733 51.584733 71.511833 77.704900 76.247733 75.154833 68.633867 79.927133 67.796000 75.883433 67.285933 93.551933
9+
71.787433 62.173900 72.560367 66.183600 52.270533 71.159400 77.826100 76.376800 74.299533 67.149733 78.550733 65.845400 76.086967 67.826100 93.719800
10+
71.111100 61.081100 72.252267 65.765767 52.792800 71.471500 77.417400 76.876900 73.513500 65.765733 77.717700 66.066067 74.234233 68.648633 94.174167
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
62.798833 49.789767 60.768733 57.093067 44.060100 55.759767 58.402400 59.423433 67.951967 58.234233 68.756733 60.468500 60.804800 56.540533 85.045033
2+
57.081067 49.741733 62.126133 57.501500 44.192200 51.591600 51.663667 53.513533 67.291300 58.522500 68.756767 60.384400 58.654667 56.396400 79.123133
3+
64.780767 62.198200 71.435467 62.426433 52.961000 67.867833 74.066033 71.339333 70.246233 63.747767 70.750733 64.708733 72.408400 63.159167 92.600600
4+
64.024000 61.465467 66.462467 61.129133 50.858833 64.648667 71.363333 68.036000 67.147133 61.657633 68.900900 63.051033 69.837833 62.354367 90.618600

EEG_process/HOC_sampEn_acc.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
72.6847 64.1441 73.2252 70.8108
2+
60.2523 55.1351 64.6126 63.8198
3+
55.4595 51.9640 56.5045 57.4414
4+
57.6937 60.2523 63.9640 62.3784
5+
46.1261 48.4324 70.1982 68.5766
6+
45.5495 40.5405 52.4324 53.4414
7+
60.6486 59.9640 65.7658 62.4144
8+
60.6126 62.2703 74.4505 69.1892
9+
61.0450 64.1441 74.0901 67.7838
10+
61.5495 62.6667 73.7297 70.9910
11+
49.1171 48.5045 56.2883 55.4955
12+
60.6126 61.3333 57.2613 56.9009
13+
44.4685 46.6306 50.5586 49.1171
14+
38.9550 39.1712 55.0631 52.5405
15+
48.7568 46.7748 53.2613 50.9189
16+
50.5586 51.2793 74.3423 73.4775
17+
59.6757 52.2162 61.2252 56.4685
18+
57.0450 51.2793 68.0360 64.0000
19+
59.3874 52.3243 77.0450 74.6306
20+
62.3423 53.1892 82.8108 79.4234
21+
53.4775 49.4775 62.3423 60.0360
22+
62.9550 57.7658 72.7568 71.1351
23+
59.8919 54.5586 70.6306 66.7387
24+
55.4234 48.2162 70.6306 66.2342
25+
66.0901 65.2973 73.1171 70.5225
26+
69.0090 68.1802 70.4144 66.0180
27+
68.7568 68.3964 67.2072 64.9009
28+
57.9459 58.8108 60.1802 58.3423
29+
65.2613 63.5315 63.0631 63.3153
30+
51.4955 53.2252 68.0000 63.3153
31+
64.8288 62.9910 69.4054 67.5315
32+
68.7207 70.4144 68.2162 66.4865
33+
72.7207 72.8649 74.6306 72.6847
34+
59.8559 60.7207 70.7027 67.2432
35+
55.4595 54.7748 50.6667 52.8649
36+
66.0901 65.6577 72.7568 69.0450
37+
59.0631 52.9009 69.0450 68.2162
38+
67.6396 66.2703 78.4865 75.5315
39+
55.7117 56.7928 69.6937 65.7658
40+
68.2162 69.3694 74.0180 72.5766
41+
45.3694 44.9009 58.7027 58.2342
42+
56.0360 54.9189 56.7568 56.2523
43+
84.6126 81.0811 95.3874 91.6036
44+
79.3153 72.9009 86.9910 86.3423
45+
91.2072 83.3874 95.4234 93.9099

EEG_process/temp.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
55.039033 64.960967
2+
53.405400 64.864900
3+
69.345367 79.195200
4+
72.264267 81.597633
5+
52.756767 53.453433
6+
77.525500 75.243200
7+
70.630633 72.997000
8+
76.156167 76.888900
9+
78.042067 78.474467
10+
65.057033 72.816800
11+
84.924900 86.498500
12+
69.885900 75.639633
13+
80.264267 90.294300
14+
64.612633 68.648633
15+
83.435433 89.645633

Hz_OJ/46.c

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,24 @@
1212
char str[MAX_N + 5], temp[MAX_N + 5];
1313
int dp[MAX_N + 5];
1414

15+
int is_huiwen(char *str, int ls, int rs, char *temp) {
16+
for (int i = ls, j = 0; i <= rs; i++, j++) {
17+
if (str[i] != temp[j]) return 0;
18+
}
19+
return 1;
20+
}
21+
1522
int main() {
1623
scanf("%s", str);
1724
int n = strlen(str);
18-
for (int i = 1; i <= n; i++) {
19-
int flag = -1, cnt = 0;
20-
for (int j = i - 1; j >= 0; j--) {
25+
for (int i = 0; i < n; i++) {
26+
int flag = 0, cnt = 0;
27+
for (int j = i, k = 0; j >= 0; j--, k++) {
2128
temp[cnt++] = str[j];
22-
if (j >= 0 && temp[cnt - 1] == temp[cnt - 2]) cnt -= 2;
23-
if (cnt == 0) {
24-
flag = j + 1;
25-
break;
26-
}
27-
}
28-
if (flag >= 0) dp[i] = dp[flag] + 1;
29-
else dp[i] = dp[i - 1] + 1;
29+
if (is_huiwen(str, j ,i, temp)) flag = j - 1;
30+
}
31+
dp[i] = (flag == -1 ? 0 : dp[flag] + 1);
3032
}
31-
printf("%d\n", dp[n] - 1);
33+
printf("%d\n", dp[n - 1]);
3234
return 0;
3335
}

Hz_OJ/a.out

32 Bytes
Binary file not shown.

面试笔试算法上/386.cpp

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*************************************************************************
2+
> File Name: 386.cpp
3+
> Author: Cui Guochong
4+
5+
> Created Time: Tue 29 Dec 2020 06:39:52 PM CST
6+
************************************************************************/
7+
8+
#include <iostream>
9+
#include <algorithm>
10+
#include <cstdio>
11+
using namespace std;
12+
13+
struct node {
14+
int cnt, num;
15+
};
16+
17+
bool cmp(const node &a, const node &b) {
18+
return a.num < b.num;
19+
}
20+
21+
int n, m;
22+
node wm[100005];
23+
24+
int main() {
25+
scanf("%d%d", &n, &m);
26+
for (int i = 0; i < n; i++) {
27+
scanf("%d", &wm[i].num);
28+
wm[i].cnt = i + 1;
29+
}
30+
sort(wm, wm + n, cmp);
31+
for (int i = 0; i < m; i++) {
32+
int t, l = 0, r = n - 1;
33+
scanf("%d", &t);
34+
while (l <= r) {
35+
int mid = (l + r) / 2;
36+
if (wm[mid].num == t) {
37+
printf("%d\n", wm[mid].cnt);
38+
t = -1;
39+
break;
40+
}
41+
if (wm[mid].num > t) {
42+
r = mid - 1;
43+
} else {
44+
l = mid + 1;
45+
}
46+
}
47+
if (t != -1) {
48+
printf("0\n");
49+
}
50+
}
51+
return 0;
52+
}

0 commit comments

Comments
 (0)