编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#3571 #1006. 超级强迫症 Wrong Answer 13 70 ms 548 K C++ 17 / 744 B s230026047 2023-11-25 15:47:21
显示原始代码
#include <iostream>
using namespace std;

bool isSame(int len[], int N);

bool isSame(int len[], int N) {
    int flag = 0;
    for (int i = 0; i < N; i++) {
        if (len[i] != len[0]) {
            flag = 0;
            break;
        }
    }
    return true;
}

/*
bool isSame(int len[], int N){
        int l=0, r=N-1;
        while(1){
                if (len[r]!=len[l]){
                        return false;
                        break;
                }
                r--;l++;
                if (r==l){
                        break;
                }
        }
        return true;
}*/

int main(int argc, char** argv) {
    int N;
    int len[N];
    cin >> N;
    for (int i = 0; i < N; i++) {
        cin >> len[i];
    }
    /*
    int flag=1;
    for (int i=0; i<N; i++){
            if (len[i]!=len[0]){
                    flag=0;
                    break;
            }
    }*/

    if (isSame(len, N)) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}
子任务 #1
Wrong Answer
得分:12
测试点 #1
Wrong Answer
得分:0
用时:4 ms
内存:280 KiB

输入文件(00_sample_00.in

3
3 2 4

答案文件(00_sample_00.out

No

用户输出

Yes

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(00_sample_01.in

4
3 3 3 3

答案文件(00_sample_01.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #3
Runtime Error
得分:0
用时:6 ms
内存:452 KiB

输入文件(00_sample_02.in

10
73 8 55 26 97 48 37 47 35 55

答案文件(00_sample_02.out

No

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #4
Runtime Error
得分:0
用时:3 ms
内存:452 KiB

输入文件(01_random_03.in

100
5 17 62 2 60 23 99 73 34 75 7 46 82 84 29 41 32 31 52 32 60 51 95 37 1 68 48 35 18 1 68 26 27 11
<193 bytes omitted>

答案文件(01_random_03.out

No

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #5
Runtime Error
得分:0
用时:7 ms
内存:384 KiB

输入文件(01_random_04.in

100
69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 
<204 bytes omitted>

答案文件(01_random_04.out

Yes

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #6
Runtime Error
得分:0
用时:3 ms
内存:400 KiB

输入文件(01_random_05.in

100
93 38 93 93 93 93 38 38 93 38 93 38 38 93 38 93 93 38 93 93 38 38 93 93 38 93 38 93 93 38 93 93 
<204 bytes omitted>

答案文件(01_random_05.out

No

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #7
Runtime Error
得分:0
用时:6 ms
内存:356 KiB

输入文件(01_random_06.in

36
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 3
<11 bytes omitted>

答案文件(01_random_06.out

Yes

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #8
Runtime Error
得分:0
用时:6 ms
内存:412 KiB

输入文件(01_random_07.in

59
97 97 40 40 97 97 97 40 97 40 97 40 97 97 40 97 40 97 40 40 40 40 40 40 97 97 97 97 40 97 40 40 9
<80 bytes omitted>

答案文件(01_random_07.out

No

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #9
Runtime Error
得分:0
用时:4 ms
内存:548 KiB

输入文件(01_random_08.in

70
81 81 15 81 81 81 15 92 15 92 81 81 92 92 81 15 81 15 92 81 92 92 15 15 92 15 92 92 81 15 15 81 9
<113 bytes omitted>

答案文件(01_random_08.out

No

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #10
Runtime Error
得分:0
用时:4 ms
内存:340 KiB

输入文件(01_random_09.in

49
49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 4
<50 bytes omitted>

答案文件(01_random_09.out

No

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #11
Runtime Error
得分:0
用时:4 ms
内存:376 KiB

输入文件(01_random_10.in

21
21 21 21 21 2 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21

答案文件(01_random_10.out

No

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #12
Runtime Error
得分:0
用时:4 ms
内存:384 KiB

输入文件(01_random_11.in

19
19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19

答案文件(01_random_11.out

Yes

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #13
Runtime Error
得分:0
用时:4 ms
内存:372 KiB

输入文件(01_random_12.in

31
100 100 100 100 100 19 100 100 19 19 19 100 100 19 19 100 19 19 100 19 19 19 19 100 100 19 100 10
<13 bytes omitted>

答案文件(01_random_12.out

No

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #14
Runtime Error
得分:0
用时:4 ms
内存:352 KiB

输入文件(01_random_13.in

26
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 1
<7 bytes omitted>

答案文件(01_random_13.out

Yes

用户输出

Yes

标准错误流

*** stack smashing detected ***: terminated

系统信息

Killed: Segmentation fault
测试点 #15
Accepted
得分:100
用时:3 ms
内存:276 KiB

输入文件(01_random_14.in

2
2 2

答案文件(01_random_14.out

Yes

用户输出

Yes

系统信息

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

输入文件(01_random_15.in

2
3 2

答案文件(01_random_15.out

No

用户输出

Yes

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0