编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#49341 #1253. 开课通知 Wrong Answer 3 1050 ms 23936 K C++ 11 / 1.3 K cgyz 2021-06-28 16:28:30
显示原始代码
#include <bits/stdc++.h>

using namespace std;

const int N = 1e6 + 10;
int n, m;

vector<int> clas[N];
void init(vector<int> &k, string n, int i) {
    int idx = 1;
    for (int j = 0; j < n.size(); j++) {
        if (n[j] == '1') {
            k.push_back(idx);
            clas[idx].push_back(i);
        }
        idx++;
    }
}

int main() {
    cin >> n >> m;
    vector<int> stu[N];
    for (int i = 0; i < n; i++) {
        string a;

        cin >> a;

        init(stu[i], a, i);
    }

    for (int i = 1; i <= n; i++) {
        bool flag = false;
        for (int j = 1; j <= m; j++) {
            if (clas[j].size() == 1) {
                cout << j << "!" << endl;
                int tem = clas[j][0];
                flag = true;
                //  cout<<stu[tem].size();
                for (int l = 0; l < stu[tem].size(); l++) {
                    vector<int>::iterator it = find(clas[stu[tem][l]].begin(), clas[stu[tem][l]].end(), tem);

                    if (it != clas[stu[tem][l]].end()) {
                        clas[stu[tem][l]].erase(it);
                    }
                }
            }
        }
        if (flag == false)
            break;
    }
    int cnt = 0;
    for (int i = 1; i <= m; i++)
        if (clas[i].size() != 0)
            cnt++;

    cout << cnt;
}
子任务 #1
Wrong Answer
得分:3
测试点 #1
Wrong Answer
得分:0
用时:42 ms
内存:23788 KiB

输入文件(1.in

1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000
<1001911 bytes omitted>

答案文件(1.out

553

用户输出

3!
6!
7!
9!
12!
13!
14!
19!
20!
23!
25!
29!
32!
36!
38!
39!
42!
44!
48!
49!
50!
51!
56!
58!
63!
64!
66!
70!
75!
77!
79!
85!
86!

<2056 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #2
Wrong Answer
得分:0
用时:42 ms
内存:23820 KiB

输入文件(2.in

1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>

答案文件(2.out

390

用户输出

4!
6!
7!
8!
12!
15!
18!
22!
23!
26!
35!
36!
38!
40!
41!
42!
44!
48!
52!
69!
74!
75!
79!
80!
81!
82!
85!
86!
88!
90!
91!
97!
99!

<2857 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #3
Wrong Answer
得分:0
用时:42 ms
内存:23796 KiB

输入文件(3.in

1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>

答案文件(3.out

570

用户输出

4!
5!
15!
26!
37!
40!
42!
43!
45!
60!
62!
77!
104!
126!
128!
135!
137!
140!
155!
157!
159!
160!
162!
179!
185!
190!
194!
198!
20
<1978 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:41 ms
内存:23908 KiB

输入文件(4.in

1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000010000000
<1001911 bytes omitted>

答案文件(4.out

898

用户输出

13!
21!
31!
34!
52!
57!
85!
87!
96!
123!
149!
151!
161!
167!
174!
182!
235!
240!
244!
255!
265!
269!
292!
299!
333!
336!
363!
38
<372 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #5
Wrong Answer
得分:0
用时:42 ms
内存:23908 KiB

输入文件(5.in

1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>

答案文件(5.out

959

用户输出

7!
9!
16!
29!
98!
101!
119!
167!
192!
201!
226!
265!
277!
317!
321!
369!
383!
384!
402!
423!
461!
623!
633!
653!
676!
684!
744!

<72 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #6
Wrong Answer
得分:0
用时:41 ms
内存:23832 KiB

输入文件(6.in

1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000010000000
<1001911 bytes omitted>

答案文件(6.out

985

用户输出

196!
320!
445!
447!
470!
524!
547!
550!
579!
674!
763!
770!
778!
911!
934!
984

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #7
Wrong Answer
得分:0
用时:41 ms
内存:23924 KiB

输入文件(7.in

1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>

答案文件(7.out

992

用户输出

74!
289!
505!
712!
787!
807!
844!
890!
992

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #8
Wrong Answer
得分:0
用时:42 ms
内存:23932 KiB

输入文件(8.in

1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
<1001911 bytes omitted>

答案文件(8.out

995

用户输出

11!
442!
810!
868!
898!
993

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #9
Accepted
得分:100
用时:42 ms
内存:23936 KiB

输入文件(9.in

1000 1000
00000000000000000000000000000000000000000100000000000000000000000000000000000000000000000
<1001911 bytes omitted>

答案文件(9.out

1000

用户输出

1000

系统信息

Exited with return code 0
测试点 #10
Wrong Answer
得分:0
用时:42 ms
内存:23924 KiB

输入文件(10.in

1000 1000
00000000000000010000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>

答案文件(10.out

998

用户输出

357!
979!
998

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #11
Wrong Answer
得分:0
用时:23 ms
内存:23788 KiB

输入文件(11.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(11.out

9998

用户输出

3!
10!
5

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #12
Wrong Answer
得分:0
用时:23 ms
内存:23796 KiB

输入文件(12.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(12.out

9997

用户输出

1!
6!
8!
5

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #13
Wrong Answer
得分:0
用时:23 ms
内存:23748 KiB

输入文件(13.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(13.out

10000

用户输出

10

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #14
Wrong Answer
得分:0
用时:23 ms
内存:23796 KiB

输入文件(14.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(14.out

9999

用户输出

7!
9

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #15
Wrong Answer
得分:0
用时:23 ms
内存:23836 KiB

输入文件(15.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(15.out

10000

用户输出

10

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #16
Wrong Answer
得分:0
用时:23 ms
内存:23752 KiB

输入文件(16.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(16.out

10000

用户输出

10

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #17
Wrong Answer
得分:0
用时:23 ms
内存:23796 KiB

输入文件(17.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(17.out

10000

用户输出

10

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #18
Wrong Answer
得分:0
用时:23 ms
内存:23784 KiB

输入文件(18.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(18.out

10000

用户输出

10

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #19
Wrong Answer
得分:0
用时:23 ms
内存:23844 KiB

输入文件(19.in

10000 10
0000000000
0000000000
1000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(19.out

10000

用户输出

10

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #20
Wrong Answer
得分:0
用时:23 ms
内存:23816 KiB

输入文件(20.in

10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>

答案文件(20.out

10000

用户输出

10

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #21
Wrong Answer
得分:0
用时:39 ms
内存:23728 KiB

输入文件(21.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(21.out

4930

用户输出

3!
5!
10!
13!
16!
24!
26!
28!
36!
38!
39!
41!
46!
49!
50!
56!
58!
63!
67!
72!
74!
76!
77!
78!
79!
81!
82!
83!
84!
85!
89!
93!
97
<187 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #22
Wrong Answer
得分:0
用时:41 ms
内存:23796 KiB

输入文件(22.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(22.out

4922

用户输出

1!
5!
6!
7!
10!
12!
13!
14!
20!
21!
24!
25!
26!
29!
33!
40!
41!
43!
46!
47!
49!
51!
52!
54!
57!
58!
64!
65!
68!
70!
71!
76!
77!

<221 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #23
Wrong Answer
得分:0
用时:40 ms
内存:23796 KiB

输入文件(23.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(23.out

4940

用户输出

3!
4!
11!
12!
13!
21!
23!
27!
29!
32!
40!
44!
46!
47!
50!
51!
52!
53!
55!
57!
58!
59!
60!
62!
65!
68!
72!
75!
76!
77!
78!
79!
82
<137 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #24
Wrong Answer
得分:0
用时:39 ms
内存:23784 KiB

输入文件(24.in

5000 200
000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(24.out

4944

用户输出

9!
11!
13!
14!
16!
24!
25!
30!
33!
44!
48!
56!
58!
60!
63!
67!
70!
71!
72!
74!
75!
77!
78!
80!
82!
83!
88!
90!
91!
99!
100!
126!
<124 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #25
Wrong Answer
得分:0
用时:40 ms
内存:23796 KiB

输入文件(25.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(25.out

4960

用户输出

2!
3!
4!
6!
15!
16!
17!
43!
44!
49!
50!
63!
78!
79!
80!
82!
84!
86!
90!
93!
99!
101!
109!
112!
115!
130!
138!
145!
152!
159!
160
<48 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #26
Wrong Answer
得分:0
用时:40 ms
内存:23740 KiB

输入文件(26.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(26.out

4967

用户输出

8!
21!
27!
37!
48!
52!
57!
60!
66!
80!
85!
96!
104!
110!
112!
114!
115!
116!
122!
123!
133!
135!
144!
146!
147!
158!
159!
178!
1
<27 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #27
Wrong Answer
得分:0
用时:41 ms
内存:23796 KiB

输入文件(27.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(27.out

4980

用户输出

22!
36!
64!
67!
77!
101!
122!
127!
137!
142!
149!
152!
158!
161!
164!
166!
174!
197!
199!
200!
176

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #28
Wrong Answer
得分:0
用时:40 ms
内存:23844 KiB

输入文件(28.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(28.out

4980

用户输出

11!
16!
22!
25!
30!
36!
40!
41!
46!
90!
95!
96!
129!
144!
148!
154!
169!
181!
185!
188!
177

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #29
Wrong Answer
得分:0
用时:43 ms
内存:23764 KiB

输入文件(29.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(29.out

4987

用户输出

7!
12!
30!
34!
55!
68!
95!
97!
115!
117!
147!
152!
185!
185

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #30
Wrong Answer
得分:0
用时:40 ms
内存:23840 KiB

输入文件(30.in

5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>

答案文件(30.out

4992

用户输出

8!
26!
42!
66!
119!
181!
189!
198!
192

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0