Source Code
#include <iostream>
#include <vector>
#include <map>

using namespace std;

#define pb push_back
const int N=1e6+1;
int mp[N];
int main(){
    // freopen("input.txt", "r", stdin);
    int n, m;
    scanf("%d%d", &n, &m);

    vector<vector<int>> v;
    map<int,bool> won;

    int par;
    scanf("%d", &par);
    while ( par-- ){
        int x;
        scanf("%d", &x);
        won[x]=1;
    }
    for(int i=0 ; i<n ; i++){
        int q, x;
        scanf("%d", &q);
        vector<int> team;
        bool flag=0;
        for(int i=0; i<q ; i++){
            scanf("%d", &x);
            if(!won[x])
                flag=1;
            team.pb(x);
        }
        if(flag)
            team.clear();
        v.pb(team);
    }

    for(int i=0 ; i<v.size() ; i++ ){
        for(auto j: v[i] )
            mp[j]++;
    }
    vector<int> ans;
    for(int i=0 ; i<v.size() ; i++){
        for(auto j: v[i] ){
            if(mp[j]==1){
                ans.pb(i+1);
                break;
            }
        }
    }

    printf("%d\n", ans.size() );
    for(auto i: ans)
        printf("%d ", i);
    puts("");
    return 0 ;
} 
Copy
Projects Rand()
GNU G++17
2001 ms
84.5 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
384 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
1070 ms
48.3 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
1073 ms
48.4 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
1090 ms
48.3 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
1076 ms
48.3 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
1087 ms
48.4 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
1095 ms
48.5 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
1099 ms
48.4 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
1123 ms
48.3 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
1086 ms
48.3 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
1083 ms
48.3 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
1084 ms
48.3 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
1104 ms
48.3 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
128 ms
8.6 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
132 ms
8.6 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
129 ms
8.6 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
131 ms
8.7 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
128 ms
8.7 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
131 ms
8.7 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
129 ms
8.7 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
128 ms
8.7 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
135 ms
8.8 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
130 ms
8.7 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
135 ms
8.7 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
312 ms
13.8 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
322 ms
13.8 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
299 ms
13.8 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
309 ms
13.8 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
300 ms
13.8 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
313 ms
13.8 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
295 ms
13.8 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
298 ms
13.8 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
296 ms
13.8 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
320 ms
13.8 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
302 ms
13.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
1919 ms
84.3 MB
Accepted
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
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 ...
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
The contestent found 41272 winning projects
Test Case #38
1927 ms
84.3 MB
Accepted
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
39882
1 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 78 79 80 82 85 86 87 88 89 90 91 92 93 94 95 ....
Judge Output
39882
1 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 78 79 80 82 85 86 87 88 89 90 91 92 93 94 95 ...
Checker Message
The contestent found 39882 winning projects
Test Case #39
1931 ms
84.3 MB
Accepted
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
40909
2 3 4 5 6 8 11 12 13 14 15 16 18 19 20 21 23 24 25 26 29 30 31 33 35 36 38 39 40 42 44 45 46 47 48 49 51 52 53 54 55 56 57 58 59 62 63 64 65 67 69 70 71 72 74 76 77 78 80 81 82 83 85 87 90 91 93 95 97 98 99 100 101 102 103 104 105 107 109 110 ...
Judge Output
40909
2 3 4 5 6 8 11 12 13 14 15 16 18 19 20 21 23 24 25 26 29 30 31 33 35 36 38 39 40 42 44 45 46 47 48 49 51 52 53 54 55 56 57 58 59 62 63 64 65 67 69 70 71 72 74 76 77 78 80 81 82 83 85 87 90 91 93 95 97 98 99 100 101 102 103 104 105 107 109 110 ...
Checker Message
The contestent found 40909 winning projects
Test Case #40
1973 ms
84.3 MB
Accepted
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
40916
1 2 3 4 5 6 7 8 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 28 29 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 49 52 53 54 55 57 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 77 78 79 80 81 82 83 84 86 87 88 89 91 93 94 95 96 98 99 100 1...
Judge Output
40916
1 2 3 4 5 6 7 8 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 28 29 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 49 52 53 54 55 57 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 77 78 79 80 81 82 83 84 86 87 88 89 91 93 94 95 96 98 99 100 1...
Checker Message
The contestent found 40916 winning projects
Test Case #41
1915 ms
84.5 MB
Accepted
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
40856
1 2 5 6 7 9 11 12 13 14 15 16 17 18 19 20 21 22 24 25 26 27 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 56 59 60 61 62 63 64 65 66 67 69 70 72 74 75 76 77 79 80 81 82 85 86 87 88 89 90 91 93 94 95 96 99 100 102 103 ...
Judge Output
40856
1 2 5 6 7 9 11 12 13 14 15 16 17 18 19 20 21 22 24 25 26 27 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 56 59 60 61 62 63 64 65 66 67 69 70 72 74 75 76 77 79 80 81 82 85 86 87 88 89 90 91 93 94 95 96 99 100 102 103 ...
Checker Message
The contestent found 40856 winning projects
Test Case #42
1933 ms
84.4 MB
Accepted
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
40456
1 2 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 24 26 27 29 30 31 32 33 34 36 37 38 39 40 41 42 47 48 49 51 52 53 54 55 56 58 59 60 61 63 65 67 68 69 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 93 94 95 96 97 98 100 101 103 104 1...
Judge Output
40456
1 2 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 24 26 27 29 30 31 32 33 34 36 37 38 39 40 41 42 47 48 49 51 52 53 54 55 56 58 59 60 61 63 65 67 68 69 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 93 94 95 96 97 98 100 101 103 104 1...
Checker Message
The contestent found 40456 winning projects
Test Case #43
1929 ms
84.4 MB
Accepted
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
40514
1 3 5 6 8 9 10 11 12 13 14 16 17 18 19 20 21 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 46 47 48 49 50 51 52 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 75 76 77 79 80 81 82 83 84 85 86 87 88 90 92 94 95 96 97 98 99 100 1....
Judge Output
40514
1 3 5 6 8 9 10 11 12 13 14 16 17 18 19 20 21 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 46 47 48 49 50 51 52 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 75 76 77 79 80 81 82 83 84 85 86 87 88 90 92 94 95 96 97 98 99 100 1...
Checker Message
The contestent found 40514 winning projects
Test Case #44
1929 ms
84.4 MB
Accepted
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
40809
1 2 3 4 5 6 7 8 9 11 12 13 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 34 35 36 39 40 41 44 45 46 47 50 52 55 56 58 59 60 61 62 63 64 65 66 68 70 71 73 74 76 79 81 83 84 87 88 89 90 91 93 95 97 99 100 102 103 104 105 107 108 109 110 111 113 1...
Judge Output
40809
1 2 3 4 5 6 7 8 9 11 12 13 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 34 35 36 39 40 41 44 45 46 47 50 52 55 56 58 59 60 61 62 63 64 65 66 68 70 71 73 74 76 79 81 83 84 87 88 89 90 91 93 95 97 99 100 102 103 104 105 107 108 109 110 111 113 1...
Checker Message
The contestent found 40809 winning projects
Test Case #45
1994 ms
84.4 MB
Accepted
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
40488
1 2 4 5 6 8 9 11 12 14 15 16 17 20 21 23 24 25 26 27 28 30 31 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 51 52 53 54 55 56 58 59 60 61 62 63 65 66 69 70 71 72 73 74 75 77 78 79 80 81 83 84 85 92 93 94 95 96 97 98 99 100 102 103 105 107 110 1...
Judge Output
40488
1 2 4 5 6 8 9 11 12 14 15 16 17 20 21 23 24 25 26 27 28 30 31 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 51 52 53 54 55 56 58 59 60 61 62 63 65 66 69 70 71 72 73 74 75 77 78 79 80 81 83 84 85 92 93 94 95 96 97 98 99 100 102 103 105 107 110 1...
Checker Message
The contestent found 40488 winning projects
Test Case #46
1940 ms
84.4 MB
Accepted
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
40583
3 4 5 6 9 11 12 13 14 15 17 19 22 23 26 27 29 30 32 33 34 35 36 37 38 39 40 42 44 45 46 48 49 50 51 54 55 56 57 58 60 61 62 63 64 65 67 69 70 71 72 73 74 75 76 78 81 83 84 85 87 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 107 108 109 1....
Judge Output
40583
3 4 5 6 9 11 12 13 14 15 17 19 22 23 26 27 29 30 32 33 34 35 36 37 38 39 40 42 44 45 46 48 49 50 51 54 55 56 57 58 60 61 62 63 64 65 67 69 70 71 72 73 74 75 76 78 81 83 84 85 87 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 107 108 109 1...
Checker Message
The contestent found 40583 winning projects
Test Case #47
1944 ms
84.4 MB
Accepted
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
40583
3 4 5 6 9 11 12 13 14 15 17 19 22 23 26 27 29 30 32 33 34 35 36 37 38 39 40 42 44 45 46 48 49 50 51 54 55 56 57 58 60 61 62 63 64 65 67 69 70 71 72 73 74 75 76 78 81 83 84 85 87 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 107 108 109 1....
Judge Output
40583
3 4 5 6 9 11 12 13 14 15 17 19 22 23 26 27 29 30 32 33 34 35 36 37 38 39 40 42 44 45 46 48 49 50 51 54 55 56 57 58 60 61 62 63 64 65 67 69 70 71 72 73 74 75 76 78 81 83 84 85 87 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 107 108 109 1...
Checker Message
The contestent found 40583 winning projects
Test Case #48
2001 ms
84.4 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
41292
1 2 3 4 5 6 7 8 9 10 12 14 15 17 18 19 20 22 24 25 26 27 28 29 30 31 32 34 35 36 38 39 40 41 42 43 44 46 47 48 49 50 52 53 54 56 57 58 59 60 61 62 64 65 66 67 68 69 70 72 73 74 75 78 79 80 81 82 83 84 85 86 88 90 91 92 95 96 97 98 101 103 104 ...
Judge Output
41292
1 2 3 4 5 6 7 8 9 10 12 14 15 17 18 19 20 22 24 25 26 27 28 29 30 31 32 34 35 36 38 39 40 41 42 43 44 46 47 48 49 50 52 53 54 56 57 58 59 60 61 62 64 65 66 67 68 69 70 72 73 74 75 78 79 80 81 82 83 84 85 86 88 90 91 92 95 96 97 98 101 103 104 ...
Checker Message