Submission #73908271


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
int main(void){
    int n, q;
    cin >> n >> q;
    vector<long long> a(n);
    for(int i = 0; i < n; i++){
        cin >> a[i];
    }
    
    for(int i = 0; i < q; i++){
        int k;
        cin >> k;
        vector<long long> b(k), t(n);
        t = a;
        for(int j = 0; j < k; j++){
            cin >> b[j];
            t[b[j]-1] = 100000000000;
        }
        
        sort(t.begin(), t.end());
        cout << t[0] << endl;
    }
}

Submission Info

Submission Time
Task C - Except and Min
User mrkm1627
Language C++23 (GCC 15.2.0)
Score 0
Code Size 517 Byte
Status TLE
Exec Time > 2000 ms
Memory 8036 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 1
AC × 1
TLE × 18
Set Name Test Cases
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 02_random_2_00.txt, 02_random_2_01.txt, 02_random_2_02.txt, 02_random_2_03.txt, 02_random_2_04.txt, 02_random_2_05.txt, 03_random_3_00.txt, 03_random_3_01.txt, 03_random_3_02.txt, 03_random_3_03.txt, 03_random_3_04.txt, 03_random_3_05.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3412 KiB
01_random_00.txt TLE > 2000 ms 8024 KiB
01_random_01.txt TLE > 2000 ms 8004 KiB
01_random_02.txt TLE > 2000 ms 8020 KiB
01_random_03.txt TLE > 2000 ms 7936 KiB
01_random_04.txt TLE > 2000 ms 8028 KiB
01_random_05.txt TLE > 2000 ms 8000 KiB
02_random_2_00.txt TLE > 2000 ms 7996 KiB
02_random_2_01.txt TLE > 2000 ms 8000 KiB
02_random_2_02.txt TLE > 2000 ms 8036 KiB
02_random_2_03.txt TLE > 2000 ms 8008 KiB
02_random_2_04.txt TLE > 2000 ms 8016 KiB
02_random_2_05.txt TLE > 2000 ms 8016 KiB
03_random_3_00.txt TLE > 2000 ms 8028 KiB
03_random_3_01.txt TLE > 2000 ms 7892 KiB
03_random_3_02.txt TLE > 2000 ms 8024 KiB
03_random_3_03.txt TLE > 2000 ms 7972 KiB
03_random_3_04.txt TLE > 2000 ms 8016 KiB
03_random_3_05.txt TLE > 2000 ms 8024 KiB