编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#3657 #1006. 超级强迫症 Runtime Error 0 110 ms 412 K C++ 17 (Clang) / 760 B s230026047 2023-11-25 16:09:32
显示原始代码
#include <iostream>
using namespace std;
/*
int isSame(int len[], int N);

int isSame(int len[], int N){
        int flag=1;
        for (int i=0; i<N; i++){
                if (len[i]!=len[0]){
                        return false;
                        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[0] != len[i]) {
            flag = 0;
            break;
        }
    }
    // isSame(len,N)

    if (flag == 1) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}
子任务 #1
Runtime Error
得分:0
测试点 #1
Runtime Error
得分:0
用时:3 ms
内存:404 KiB

输入文件(00_sample_00.in

3
3 2 4

答案文件(00_sample_00.out

No

系统信息

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

输入文件(00_sample_01.in

4
3 3 3 3

答案文件(00_sample_01.out

Yes

系统信息

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

输入文件(00_sample_02.in

10
73 8 55 26 97 48 37 47 35 55

答案文件(00_sample_02.out

No

系统信息

Killed: Segmentation fault
测试点 #4
Runtime Error
得分:0
用时:5 ms
内存:384 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

系统信息

Killed: Segmentation fault
测试点 #5
Runtime Error
得分:0
用时:5 ms
内存:412 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

系统信息

Killed: Segmentation fault
测试点 #6
Runtime Error
得分:0
用时:6 ms
内存:380 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

系统信息

Killed: Segmentation fault
测试点 #7
Runtime Error
得分:0
用时:31 ms
内存:368 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

系统信息

Killed: Segmentation fault
测试点 #8
Runtime Error
得分:0
用时:5 ms
内存:388 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

系统信息

Killed: Segmentation fault
测试点 #9
Runtime Error
得分:0
用时:6 ms
内存:400 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

系统信息

Killed: Segmentation fault
测试点 #10
Runtime Error
得分:0
用时:3 ms
内存:336 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

系统信息

Killed: Segmentation fault
测试点 #11
Runtime Error
得分:0
用时:5 ms
内存:360 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

系统信息

Killed: Segmentation fault
测试点 #12
Runtime Error
得分:0
用时:6 ms
内存:324 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

系统信息

Killed: Segmentation fault
测试点 #13
Runtime Error
得分:0
用时:5 ms
内存:396 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

系统信息

Killed: Segmentation fault
测试点 #14
Runtime Error
得分:0
用时:5 ms
内存:356 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

系统信息

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

输入文件(01_random_14.in

2
2 2

答案文件(01_random_14.out

Yes

系统信息

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

输入文件(01_random_15.in

2
3 2

答案文件(01_random_15.out

No

系统信息

Killed: Segmentation fault