/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 284.0 KiB
#2 Time Exceeded ≥1012ms ≥1.066 MiB
#3 Time Exceeded ≥1055ms ≥1.062 MiB

Code

#include <stdio.h>

int main() {
    int N;
    scanf("%d", &N);

    int A[N];
    for (int i = 0; i < N; i++) {
        scanf("%d", &A[i]);
    }

    int ans[N];
    for (int i = 0; i < N; i++) {
        ans[i] = 0;
    }

    for (int i = 0; i < N; i++) {
        for (int j = 0; j < N; j++) {
            if (A[i] == A[j]) {
                ans[i]++;
            }
        }
    }

    for (int i = 0; i < N; i++) {
        if (ans[i] == 1) {
            printf("%d\n", A[i]);
            break;
        }
    }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1095 Uncovering the Lone Heart
Contest
Brain Booster #6
Language
C99 (GCC 13.2.0)
Submit At
2024-10-03 16:40:29
Judged At
2024-12-17 11:34:16
Judged By
Score
10
Total Time
≥1055ms
Peak Memory
≥1.066 MiB