Source Code
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <stdlib.h>
#include <time.h>
#include <stack>
#include <map>
#include <math.h>
#include <cmath>
#include <string.h>
#include <numeric>
using namespace std;
typedef vector<int> vi ;
typedef long long ll;
#define all(x) (x).begin() , (x).end()
#define allR(x) (x).rbegin() , (x).rend()
#define pb push_back
const int N = 1e6+1, M=1e6+1, NN=1e8 , MX = 1e6+1;
const ll MXL=1e18 , MOD = 1e9 + 7 ;
int a[N];
bool  won[N];
map<int,int> mp;
vector<vector<int>> v;
vector<int> pos, ans;
int main(){
    // freopen("input.txt", "r", stdin);
    int n, m, q;
    cin >> n>> m >> q;
    v.resize(n);
    while ( q-- ){
        int x;
        scanf("%d" , &x );
        won[x]=1;
    }
    for(int i=0 ; i<n ; i++ ){
        scanf("%d" , &q );
        int cnt=0;
        for(int j=0,x ; j<q ; j++ ){
            scanf("%d", &x );
            v[i].pb(x);
            if(won[x])
                cnt++;
        }
        if( cnt == q )
            pos.pb(i);
    }
    for(int i=0 ; i<pos.size() ; i++ ){
        int sz = v[pos[i]].size();
        for(int j=0 ; j<sz ; j++ ){
            int winner= v[pos[i]][j];
            mp[winner]++;
        }
    }
    for(int i=0 ; i<pos.size() ; i++ ){
        int cnt=0, sz=v[pos[i]].size();
        for(int j=0 ; j<sz ; j++ ){
            if(mp.count( v[ pos[i] ] [j]) &&  mp[  v[ pos[i] ] [j]   ] == 1 )
                cnt++;
        }
        if(cnt )
            ans.pb(pos[i]+1);
    }
    sort(all(ans));
    printf("%d\n", ans.size() );
    for(auto i: ans)
        printf("%d ", i);
    return 0 ;
}
Copy
Projects Rand()
GNU G++17
2080 ms
81.2 MB
Time Limit Exceeded
Test Case #1
1 ms
360 KB
Accepted
Input
3 3
2 1 2
3 1 2 3
2 1 2
2 2 3
Output
1
2
Judge Output
1
2
Checker Message
The contestent found 1 winning projects
Test Case #2
0 ms
408 KB
Accepted
Input
4 3
3 1 2 3
2 1 2
2 2 3
2 1 3
3 1 2 3
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #3
1580 ms
54.6 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
122
12269 14079 15963 18354 23640 24075 29268 31842 32984 35362 41572 43463 45675 53188 54545 55900 59406 72225 73621 74584 75921 79748 81592 86962 87758 94995 96767 97532 101145 102180 104453 113082 114567 118886 119947 122336 125108 127214 132550 ...
Judge Output
122
12269 14079 15963 18354 23640 24075 29268 31842 32984 35362 41572 43463 45675 53188 54545 55900 59406 72225 73621 74584 75921 79748 81592 86962 87758 94995 96767 97532 101145 102180 104453 113082 114567 118886 119947 122336 125108 127214 132550 ...
Checker Message
The contestent found 122 winning projects
Test Case #4
1571 ms
54.6 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
86
7530 13498 17409 20450 20478 28196 30509 41468 54128 60556 68212 71036 71412 80087 84220 84603 85498 89617 90978 94027 100626 105663 111219 113832 125406 128301 129218 131655 140755 146476 156379 165671 169361 172546 175663 190827 191496 194379 1...
Judge Output
86
7530 13498 17409 20450 20478 28196 30509 41468 54128 60556 68212 71036 71412 80087 84220 84603 85498 89617 90978 94027 100626 105663 111219 113832 125406 128301 129218 131655 140755 146476 156379 165671 169361 172546 175663 190827 191496 194379 1...
Checker Message
The contestent found 86 winning projects
Test Case #5
1579 ms
54.6 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
81
4639 5076 5211 5802 7382 9168 9478 9943 12398 13803 14556 19041 19100 22512 30179 37136 38983 39885 56098 59446 63498 63657 63801 65808 74525 83892 86509 93660 94418 97827 98665 105141 112699 115863 120784 125854 133286 138037 140402 152085 1533....
Judge Output
81
4639 5076 5211 5802 7382 9168 9478 9943 12398 13803 14556 19041 19100 22512 30179 37136 38983 39885 56098 59446 63498 63657 63801 65808 74525 83892 86509 93660 94418 97827 98665 105141 112699 115863 120784 125854 133286 138037 140402 152085 1533...
Checker Message
The contestent found 81 winning projects
Test Case #6
1650 ms
54.8 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
85
12669 17919 21603 26771 29971 32056 35728 36179 40255 40985 43431 52732 68086 84104 85004 90886 93681 93886 95075 95126 97622 97686 100128 102775 105656 105723 117067 119602 124561 129693 132729 133479 134353 139387 147920 152893 162908 163151 16...
Judge Output
85
12669 17919 21603 26771 29971 32056 35728 36179 40255 40985 43431 52732 68086 84104 85004 90886 93681 93886 95075 95126 97622 97686 100128 102775 105656 105723 117067 119602 124561 129693 132729 133479 134353 139387 147920 152893 162908 163151 16...
Checker Message
The contestent found 85 winning projects
Test Case #7
1560 ms
54.7 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
97
2250 3521 8779 12101 18091 19492 25199 26344 36987 39277 40826 49673 52156 54507 55868 58497 59654 60822 63919 66956 70138 74293 76982 77883 79470 83072 88685 90027 96480 105192 106879 112502 117636 123937 129249 133732 135284 136944 141547 1453....
Judge Output
97
2250 3521 8779 12101 18091 19492 25199 26344 36987 39277 40826 49673 52156 54507 55868 58497 59654 60822 63919 66956 70138 74293 76982 77883 79470 83072 88685 90027 96480 105192 106879 112502 117636 123937 129249 133732 135284 136944 141547 1453...
Checker Message
The contestent found 97 winning projects
Test Case #8
1630 ms
54.7 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
90
3042 6044 12371 15730 16092 23366 26245 30834 46367 49211 55539 65113 67737 68928 75900 78044 88038 89748 90973 96519 96894 99435 103496 110941 112763 119573 121509 123315 134250 138423 143368 145376 157670 160275 172912 174374 182133 186038 1900...
Judge Output
90
3042 6044 12371 15730 16092 23366 26245 30834 46367 49211 55539 65113 67737 68928 75900 78044 88038 89748 90973 96519 96894 99435 103496 110941 112763 119573 121509 123315 134250 138423 143368 145376 157670 160275 172912 174374 182133 186038 1900...
Checker Message
The contestent found 90 winning projects
Test Case #9
1671 ms
54.7 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
84
76 6487 9144 17579 25925 39075 40328 58695 60912 66325 81479 83412 84134 87126 112222 115117 120786 124686 126899 132490 135378 138980 139540 142243 147590 157052 161895 167158 174285 177076 178052 178618 188360 190146 191221 193895 195852 200769...
Judge Output
84
76 6487 9144 17579 25925 39075 40328 58695 60912 66325 81479 83412 84134 87126 112222 115117 120786 124686 126899 132490 135378 138980 139540 142243 147590 157052 161895 167158 174285 177076 178052 178618 188360 190146 191221 193895 195852 200769...
Checker Message
The contestent found 84 winning projects
Test Case #10
1602 ms
54.7 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
80
959 3055 4367 5254 7865 8244 10595 10695 35286 37945 49759 59634 63040 79042 83113 89724 101922 104083 105263 113102 117567 122110 125825 133896 135595 142610 156753 166797 168342 173672 174522 177278 179203 181029 184703 188181 191233 192926 196...
Judge Output
80
959 3055 4367 5254 7865 8244 10595 10695 35286 37945 49759 59634 63040 79042 83113 89724 101922 104083 105263 113102 117567 122110 125825 133896 135595 142610 156753 166797 168342 173672 174522 177278 179203 181029 184703 188181 191233 192926 196...
Checker Message
The contestent found 80 winning projects
Test Case #11
1657 ms
54.7 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
91
1570 5670 9885 19656 23120 28585 34389 35908 36227 37041 44956 50172 51377 58459 59578 61885 70945 73140 73726 79331 85856 91288 95117 95513 97444 97726 108392 109754 116920 119459 135936 139775 143903 148538 162534 163244 163269 172453 187021 19...
Judge Output
91
1570 5670 9885 19656 23120 28585 34389 35908 36227 37041 44956 50172 51377 58459 59578 61885 70945 73140 73726 79331 85856 91288 95117 95513 97444 97726 108392 109754 116920 119459 135936 139775 143903 148538 162534 163244 163269 172453 187021 19...
Checker Message
The contestent found 91 winning projects
Test Case #12
1628 ms
54.7 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
80
419 15462 17271 22187 26460 28737 30194 36402 53744 59646 64655 66118 69144 78119 93846 96624 99919 104756 107568 110070 111728 112377 116076 118188 119980 134379 134913 139511 147984 150515 150801 153349 157666 160462 164691 172844 210133 214256...
Judge Output
80
419 15462 17271 22187 26460 28737 30194 36402 53744 59646 64655 66118 69144 78119 93846 96624 99919 104756 107568 110070 111728 112377 116076 118188 119980 134379 134913 139511 147984 150515 150801 153349 157666 160462 164691 172844 210133 214256...
Checker Message
The contestent found 80 winning projects
Test Case #13
1620 ms
54.7 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
90
392 7986 8448 8862 11874 20013 20409 21299 26062 28732 29205 31533 32597 37774 38037 49148 49216 56891 62789 73407 76734 79043 81439 83363 103123 110021 113225 113650 116211 117375 125441 127119 136144 136914 141436 149303 156844 171020 176983 18...
Judge Output
90
392 7986 8448 8862 11874 20013 20409 21299 26062 28732 29205 31533 32597 37774 38037 49148 49216 56891 62789 73407 76734 79043 81439 83363 103123 110021 113225 113650 116211 117375 125441 127119 136144 136914 141436 149303 156844 171020 176983 18...
Checker Message
The contestent found 90 winning projects
Test Case #14
1764 ms
54.7 MB
Accepted
Input
1000000 200000
200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79...
Output
82
602 5810 7061 8964 18130 23159 25122 27296 28575 35170 45480 49243 55306 69304 69536 77492 83476 85567 85983 86162 91606 100045 101901 104218 107290 110136 115520 115834 121580 130917 141101 147006 148440 156849 159169 159666 160551 164769 171808...
Judge Output
82
602 5810 7061 8964 18130 23159 25122 27296 28575 35170 45480 49243 55306 69304 69536 77492 83476 85567 85983 86162 91606 100045 101901 104218 107290 110136 115520 115834 121580 130917 141101 147006 148440 156849 159169 159666 160551 164769 171808...
Checker Message
The contestent found 82 winning projects
Test Case #15
199 ms
8.0 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #16
198 ms
8.2 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #17
195 ms
8.0 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #18
195 ms
8.2 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #19
196 ms
8.1 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #20
198 ms
8.2 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #21
199 ms
8.2 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #22
198 ms
8.2 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #23
198 ms
8.1 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #24
199 ms
8.1 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #25
198 ms
8.1 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Judge Output
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Checker Message
The contestent found 20 winning projects
Test Case #26
562 ms
12.9 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #27
571 ms
13.0 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #28
559 ms
13.0 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #29
557 ms
12.9 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #30
562 ms
12.9 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #31
566 ms
13.1 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #32
562 ms
13.0 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #33
562 ms
12.9 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #34
563 ms
13.0 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #35
565 ms
13.1 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #36
561 ms
12.9 MB
Accepted
Input
20 100000
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ...
Output
0
Judge Output
0
Checker Message
The contestent found 0 winning projects
Test Case #37
2080 ms
81.2 MB
Time Limit Exceeded
Input
1000000 1000000
1000000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 ...
Output

Judge Output
41272
1 3 4 5 6 7 8 10 12 13 14 16 17 18 19 20 21 22 23 24 25 27 28 30 31 33 35 36 37 39 41 42 43 44 45 47 48 49 50 53 54 55 56 59 60 62 63 64 66 67 69 70 71 72 73 74 75 77 79 80 81 82 83 86 87 88 89 92 93 94 95 96 98 99 100 101 102 103 104 107 108 ...
Checker Message