编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#16045 #1060. youngmagician爆肝抽卡手游 Accepted 100 1186 ms 10140 K C++ / 699 B 192023211924 2024-03-16 14:34:46
显示原始代码
#include <bits/stdc++.h>

using namespace std;
int main() {
    ios::sync_with_stdio(false);

    int n, m, w, kill, io;
    cin >> n >> m;
    vector<int> a(m);
    int TG[n][m];
    int x, y;
    for (x = 0; x < n; x++) {
        kill = -77;
        for (y = 0; y < m; y++) {
            cin >> w;
            if (a[y] == 1) {
                TG[x][y] = -77;
                continue;
            }
            TG[x][y] = w;
            if (kill < w) {
                io = y;
                kill = w;
            }
        }
        a[io] = 1;
    }
    for (y = 0; y < m - 1; y++) {
        cout << a[y] << " ";
    }
    cout << a[m - 1];
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:221 ms
内存:10140 KiB

输入文件(2.in

647 3832
2595 3238 2024 2678 2515 1212 3408 1670 2592 1435 3727 2214 3613 1291 2366 3424 2243 739 4
<11681495 bytes omitted>

答案文件(2.out

0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 1 0 
<7566 bytes omitted>

用户输出

0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 
<7535 bytes omitted>

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:206 ms
内存:8256 KiB

输入文件(3.in

1000 2000
1255 1563 714 1801 986 517 1203 47 1865 1038 119 340 398 207 1986 1037 510 433 1049 1818 
<8894911 bytes omitted>

答案文件(3.out

1 1 1 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 0 0 0 1 0 1 1 0 0 1 1 0 0 1 0 1 1 1 0 0 0 
<3902 bytes omitted>

用户输出

1 1 1 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 0 0 0 1 0 1 1 0 0 1 1 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 
<3871 bytes omitted>

系统信息

Exited with return code 0
测试点 #3
Accepted
得分:100
用时:189 ms
内存:8248 KiB

输入文件(4.in

1000 2000
398 1992 494 729 842 825 1013 29 1288 1544 341 248 1850 706 1476 516 596 431 1755 1168 11
<8894911 bytes omitted>

答案文件(4.out

0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 0 1 0 1 0 0 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 1 1 0 0 0 0 0 0 1 0 0 1 
<3902 bytes omitted>

用户输出

0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 0 1 0 1 0 0 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 1 1 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 1 0 0 0 0 1 0 1 
<3871 bytes omitted>

系统信息

Exited with return code 0
测试点 #4
Accepted
得分:100
用时:192 ms
内存:8260 KiB

输入文件(5.in

1000 2000
1298 859 1921 1666 1460 790 203 1530 406 605 827 1972 723 438 106 713 593 974 181 1856 17
<8894911 bytes omitted>

答案文件(5.out

1 0 1 1 1 1 0 0 1 1 1 0 1 0 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 0 1 1 1 0 1 1 1 0 1 1 1 0 0 
<3902 bytes omitted>

用户输出

1 0 1 1 1 1 0 0 1 1 1 0 1 0 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 0 1 1 1 0 1 1 1 0 1 1 1 0 0 1 1 0 0 1 0 0 0 1 0 1 1 1 0 
<3871 bytes omitted>

系统信息

Exited with return code 0
测试点 #5
Accepted
得分:100
用时:188 ms
内存:8252 KiB

输入文件(6.in

1000 2000
1480 815 900 1261 241 845 178 1613 787 881 1522 1897 354 68 40 397 1887 1400 1593 1563 13
<8894911 bytes omitted>

答案文件(6.out

0 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0 1 1 0 0 1 1 1 0 1 1 1 1 0 1 1 0 1 0 0 0 1 1 1 1 
<3902 bytes omitted>

用户输出

0 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0 1 1 0 0 1 1 1 0 1 1 1 1 0 1 1 0 1 0 0 0 1 1 1 1 1 1 0 1 1 1 0 0 0 0 0 1 0 0 
<3871 bytes omitted>

系统信息

Exited with return code 0
测试点 #6
Accepted
得分:100
用时:190 ms
内存:8256 KiB

输入文件(7.in

1000 2000
414 380 896 547 199 1384 229 601 892 516 996 1185 860 1326 775 825 1360 511 1513 134 1573
<8894911 bytes omitted>

答案文件(7.out

1 0 1 1 0 0 1 1 1 1 1 0 1 1 0 1 1 1 0 0 0 1 0 1 1 1 1 1 0 1 0 0 1 1 0 0 0 1 1 0 0 1 1 1 0 0 0 1 1 0 
<3902 bytes omitted>

用户输出

1 0 1 1 0 0 1 1 1 1 1 0 1 1 0 1 1 1 0 0 0 1 0 1 1 1 1 1 0 1 0 0 1 1 0 0 0 1 1 0 0 1 1 1 0 0 0 1 1 0 0 0 0 1 0 1 0 0 0 1 0 1 0 0 
<3871 bytes omitted>

系统信息

Exited with return code 0