/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 540.0 KiB
#2 Time Exceeded ≥1094ms ≥1.039 MiB
#3 Time Exceeded ≥1097ms ≥1.113 MiB
#4 Time Exceeded ≥1099ms ≥1.043 MiB
#5 Time Exceeded ≥1097ms ≥1.043 MiB
#6 Time Exceeded ≥1094ms ≥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-10-03 16:40:29
Judged By
Score
10
Total Time
≥1099ms
Peak Memory
≥1.113 MiB