编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#30512 #2057. "Genshin Impact" or "Matrix" Wrong Answer 0 550 ms 4416 K C / 998 B 192023210293 2025-03-16 11:28:35
显示原始代码
#include <stdio.h>
#include <stdlib.h>

int main() {
    int T;
    scanf("%d", &T);
    int ***a = malloc(T * sizeof(int **));
    for (int x = 0; x < T; x++) {
        int m, n;
        scanf("%d %d", &n, &m);
        a[x] = malloc(n * sizeof(int *));
        for (int j = 0; j < n; j++) {
            a[x][j] = (int *)malloc(m * sizeof(int));
        }
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                scanf("%d", &a[x][i][j]);
            }
        }
    }
    for (int x = 0; x < T; x++) {
        int n = sizeof(a[x]) / sizeof(a[x][0]);
        int m = sizeof(a[x][0]) / sizeof(a[x][0][0]);
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++) {
                printf("%d ", a[x][j][i]);
            }
            printf("\n");
        }
        for (int i = 0; i < n; i++) {
            free(a[x][i]);
        }
        free(a[x]);
    }
    free(a);
    return 0;
}
子任务 #1
Wrong Answer
得分:0
测试点 #1
Wrong Answer
得分:0
用时:2 ms
内存:284 KiB

输入文件(test1.in

5
9 8
23 20 89 9 22 12 3 74
14 15 64 28 5 86 95 35
98 21 11 92 63 23 23 15
58 12 44 18 71 15 82
<666 bytes omitted>

答案文件(test1.out

23 14 98 58 36 94 66 40 61
20 15 21 12 43 54 26 62 26
89 64 11 44 3 74 99 95 23
9 28 92 18 13 105
<626 bytes omitted>

用户输出

23 
20 
63 
1 
79 
103 
80 
90 
94 
0 

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test2.in

9
10 6
103 35 14 53 97 76
105 70 17 53 3 31
77 31 6 82 96 83
33 57 99 61 74 102
64 91 6 1 68 2
<1085 bytes omitted>

答案文件(test2.out

103 105 77 33 64 54 30 34 87 101
35 70 31 57 91 82 100 105 35 15
14 17 6 99 6 46 13 104 108 37
53
<1026 bytes omitted>

用户输出

103 
35 
49 
68 
94 
53 
17 
106 
73 
87 
19 
69 
17 
0 
36 
12 
35 
21 

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test3.in

1
5 8
37 2 37 106 56 36 68 72
74 106 74 12 104 41 56 108
81 91 1 2 32 56 92 84
68 77 29 61 42 6
<34 bytes omitted>

答案文件(test3.out

37 74 81 68 83
2 106 91 77 103
37 74 1 29 12
106 12 2 61 65
56 104 32 42 7
36 41 56 64 32
68 5
<29 bytes omitted>

用户输出

37 
2 

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test4.in

1
2 358
336971125 659598369 160567226 391749388 4890852 35766291 26239573 473038165 597007 3615545
<6790 bytes omitted>

答案文件(test4.out

336971125 159336148
659598369 50890065
160567226 293743777
391749388 18903751
4890852 7656526
3
<7136 bytes omitted>

用户输出

336971125 
659598369 

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test5.in

1
582 977
46978855 46397957 706610773 24701041 57954481 51603266 593109701 385569073 178982291 582
<5471491 bytes omitted>

答案文件(test5.out

46978855 71204586 373023981 331018941 471478579 224377195 775205996 135087892 294398009 111901957 32
<5471874 bytes omitted>

用户输出

46978855 
46397957 

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test6.in

1
142 172
46598383 259119081 26266593 41901601 318269896 144857749 54280319 380734225 287675203 88
<235036 bytes omitted>

答案文件(test6.out

46598383 34927956 509137118 32614660 327624601 113803873 211377373 60952579 104969019 260155777 3131
<235054 bytes omitted>

用户输出

46598383 
259119081 

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test7.in

1
1000 1000
336971125 659598369 160567226 391749388 4890852 35766291 26239573 473038165 597007 361
<9623113 bytes omitted>

答案文件(test7.out

336971125 3209761 128883901 168105871 155606935 312019525 175829137 23336299 18018181 453263626 4723
<9623099 bytes omitted>

用户输出

336971125 
659598369 

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test8.in

100
100 100
336971125 659598369 160567226 391749388 4890852 35766291 26239573 473038165 597007 361
<9633019 bytes omitted>

答案文件(test8.out

336971125 521273565 26304961 57559271 252522538 60158017 560098497 333702889 46212046 239077441 3209
<9632114 bytes omitted>

用户输出

336971125 
659598369 
12091429 
854839791 
587465542 
574681601 
74885662 
398426757 
81922721 
24642463 
670659921 
266428238 

<2000 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #9
Wrong Answer
得分:0
用时:118 ms
内存:4416 KiB

输入文件(test9.in

100
100 100
235849376 700038461 223155865 179089604 4984801 148331640 868227231 286899292 11584456
<9632149 bytes omitted>

答案文件(test9.out

235849376 388760081 156327445 495581362 81054337 180814585 648281341 199017722 40810957 303352113 15
<9631244 bytes omitted>

用户输出

235849376 
700038461 
199306144 
28190410 
216162701 
2314313 
44384661 
69043209 
521873285 
184551940 
119599481 
23288689 
23
<1984 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test10.in

100
100 100
244466848 697818145 76814700 62522008 318267184 284496401 70790026 718415944 26111905 
<9630974 bytes omitted>

答案文件(test10.out

244466848 29374827 60046436 20172967 276147091 485480131 604878548 47606746 269695651 96638920 39090
<9630069 bytes omitted>

用户输出

244466848 
697818145 
183491767 
130539157 
549281251 
277459495 
40887901 
36203941 
22148726 
178495003 
523542252 
161522531 
<1991 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0