1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000
<1001911 bytes omitted>
用户输出
553
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#49042 | #1253. 开课通知 | Wrong Answer | 87 | 468 ms | 2284 K | C++ 17 / 860 B | Chtapodia | 2021-05-20 12:45:52 |
#include <bits/stdc++.h>
using namespace std;
int check(int num[], int m) {
for (int i = 0; i < m; i++) {
if (num[i] == 1)
return i;
}
return 0;
}
int main() {
int n;
int m;
cin >> n >> m;
int num[m] = { 0 };
string a[n];
int result = n;
for (int i = 0; i < n; i++) {
cin >> a[i];
for (int j = 0; j < m; j++) {
num[j] += a[i][j] - '0';
}
}
int c;
while (c = check(num, m)) {
--result;
for (int i = 0; i < n; i++) {
if (a[i][c] == '1') {
for (int j = 0; j < m; j++) {
num[j] = num[j] - (a[i][j] - '0');
a[i][j] = '0';
}
break;
}
}
}
cout << result << endl;
return 0;
}
1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000
<1001911 bytes omitted>
用户输出
553
系统信息
Exited with return code 0
1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>
用户输出
390
系统信息
Exited with return code 0
1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>
用户输出
570
系统信息
Exited with return code 0
1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000010000000
<1001911 bytes omitted>
用户输出
998
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>
用户输出
959
系统信息
Exited with return code 0
1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000010000000
<1001911 bytes omitted>
用户输出
985
系统信息
Exited with return code 0
1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>
用户输出
992
系统信息
Exited with return code 0
1000 1000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
<1001911 bytes omitted>
用户输出
995
系统信息
Exited with return code 0
1000 1000
00000000000000000000000000000000000000000100000000000000000000000000000000000000000000000
<1001911 bytes omitted>
用户输出
1000
系统信息
Exited with return code 0
1000 1000
00000000000000010000000000000000000000000000000000000000000000000000000000000000000000000
<1001911 bytes omitted>
用户输出
998
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
9998
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
10000
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
10000
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
9999
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
10000
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
10000
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
10000
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
10000
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
1000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
10000
系统信息
Exited with return code 0
10000 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
000000
<119910 bytes omitted>
用户输出
10000
系统信息
Exited with return code 0
5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
4930
系统信息
Exited with return code 0
5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
5000
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
4940
系统信息
Exited with return code 0
5000 200
000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
4944
系统信息
Exited with return code 0
5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
4973
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
4967
系统信息
Exited with return code 0
5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
4980
系统信息
Exited with return code 0
5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
4980
系统信息
Exited with return code 0
5000 200
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<1009910 bytes omitted>
用户输出
4987
系统信息
Exited with return code 0