답안 #522798

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
522798 2022-02-05T21:52:42 Z Deepesson 꿈 (IOI13_dreaming) C++17
59 / 100
1000 ms 15688 KB
#include <bits/stdc++.h>
#include "dreaming.h"
#define MAX 105000
typedef std::pair<int,int> pii;
std::vector<pii> con[MAX];
bool foi[MAX];
int visitou[MAX]={};
int turno=42;
int mais_distante(int x){
    std::priority_queue<pii,std::vector<pii>,std::greater<pii>> queue;
    queue.push({0,x});
    int last=0;
    ++turno;
    while(queue.size()){
        auto __ = queue.top();
        queue.pop();
        if(visitou[__.second]==turno)continue;
        visitou[__.second]=turno;
        last=__.second;
        for(auto&x:con[__.second])queue.push({__.first+x.second,x.first});
    }
    return last;
}
int maior_distancia(int x){
    std::priority_queue<pii,std::vector<pii>,std::greater<pii>> queue;
    queue.push({0,x});
    int last=0;
    ++turno;
    while(queue.size()){
        auto __ = queue.top();
        queue.pop();
        if(visitou[__.second]==turno)continue;
        visitou[__.second]=turno;
        last=__.first;
        for(auto&x:con[__.second])queue.push({__.first+x.second,x.first});
    }
    return last;
}
std::vector<int> marcar(int x){
    std::priority_queue<pii,std::vector<pii>,std::greater<pii>> queue;
    queue.push({0,x});
    std::vector<int> v;
    ++turno;
    while(queue.size()){
        auto __ = queue.top();
        queue.pop();
        if(visitou[__.second]==turno)continue;
        visitou[__.second]=turno;
        v.push_back(__.second);
        foi[__.second]=true;
        for(auto&x:con[__.second])queue.push({__.first+x.second,x.first});
    }
    return v;
}
int maiordist[MAX]={};
int meio(int x){
    int ponta1 = mais_distante(mais_distante(x));
    int ponta2 = mais_distante(ponta1);
    std::vector<int> checar;
    {
        std::priority_queue<pii,std::vector<pii>,std::greater<pii>> queue;
        queue.push({0,ponta1});
        bool visitou[MAX]={};
        while(queue.size()){
            auto __ = queue.top();
            queue.pop();
            if(visitou[__.second])continue;
            visitou[__.second]=true;
            checar.push_back(__.second);
            maiordist[__.second]=__.first;
            for(auto&x:con[__.second])queue.push({__.first+x.second,x.first});
        }
    }
    {
        std::priority_queue<pii,std::vector<pii>,std::greater<pii>> queue;
        queue.push({0,ponta2});
        bool visitou[MAX]={};
        while(queue.size()){
            auto __ = queue.top();
            queue.pop();
            if(visitou[__.second])continue;
            visitou[__.second]=true;
            maiordist[__.second]=std::max(maiordist[__.second],__.first);
            for(auto&x:con[__.second])queue.push({__.first+x.second,x.first});
        }
    }
    int best=-1;
    int val=1e9+7;
    for(auto&x:checar){
        if(maiordist[x]<val){
            val=maiordist[x];
            best=x;
        }
    }
    return best;
}
int travelTime(int N,int M,int L,int A[],int B[],int T[]){
    for(int i=0;i!=M;++i){
        con[A[i]].push_back({B[i],T[i]});
        con[B[i]].push_back({A[i],T[i]});
    }
    std::vector<std::vector<int>> vec;
    for(int i=0;i!=N;++i){
        if(foi[i])continue;
        vec.push_back(marcar(i));
    }
    std::vector<pii> meios;
    for(auto&x:vec){
        int k = meio(x[0]);
        meios.push_back({maior_distancia(k),meio(x[0])});
    }
    std::sort(meios.begin(),meios.end(),std::greater<pii>());
    for(int i=1;i<meios.size();++i){
        con[meios[i].second].push_back({meios[0].second,L});
        con[meios[0].second].push_back({meios[i].second,L});
    }
    return maior_distancia(mais_distante(mais_distante(0)));
}

Compilation message

dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:113:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  113 |     for(int i=1;i<meios.size();++i){
      |                 ~^~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 145 ms 9116 KB Output is correct
2 Correct 136 ms 9016 KB Output is correct
3 Correct 82 ms 6880 KB Output is correct
4 Correct 18 ms 3912 KB Output is correct
5 Correct 15 ms 3552 KB Output is correct
6 Correct 31 ms 4456 KB Output is correct
7 Correct 2 ms 2892 KB Output is correct
8 Correct 81 ms 5476 KB Output is correct
9 Correct 95 ms 6248 KB Output is correct
10 Correct 2 ms 2892 KB Output is correct
11 Correct 122 ms 7444 KB Output is correct
12 Correct 190 ms 8372 KB Output is correct
13 Correct 3 ms 2892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 2892 KB Output is correct
2 Correct 2 ms 2892 KB Output is correct
3 Correct 2 ms 2892 KB Output is correct
4 Correct 2 ms 2892 KB Output is correct
5 Correct 2 ms 2892 KB Output is correct
6 Correct 2 ms 2892 KB Output is correct
7 Correct 2 ms 2888 KB Output is correct
8 Correct 2 ms 2892 KB Output is correct
9 Correct 2 ms 2892 KB Output is correct
10 Correct 2 ms 2892 KB Output is correct
11 Correct 2 ms 2764 KB Output is correct
12 Correct 2 ms 2892 KB Output is correct
13 Correct 2 ms 2844 KB Output is correct
14 Correct 2 ms 2892 KB Output is correct
15 Correct 2 ms 2764 KB Output is correct
16 Correct 2 ms 2892 KB Output is correct
17 Correct 2 ms 2892 KB Output is correct
18 Correct 2 ms 2892 KB Output is correct
19 Correct 2 ms 2892 KB Output is correct
20 Correct 2 ms 2892 KB Output is correct
21 Correct 2 ms 2892 KB Output is correct
22 Correct 2 ms 2892 KB Output is correct
23 Correct 2 ms 2892 KB Output is correct
24 Correct 2 ms 2892 KB Output is correct
25 Correct 2 ms 2892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 145 ms 9116 KB Output is correct
2 Correct 136 ms 9016 KB Output is correct
3 Correct 82 ms 6880 KB Output is correct
4 Correct 18 ms 3912 KB Output is correct
5 Correct 15 ms 3552 KB Output is correct
6 Correct 31 ms 4456 KB Output is correct
7 Correct 2 ms 2892 KB Output is correct
8 Correct 81 ms 5476 KB Output is correct
9 Correct 95 ms 6248 KB Output is correct
10 Correct 2 ms 2892 KB Output is correct
11 Correct 122 ms 7444 KB Output is correct
12 Correct 190 ms 8372 KB Output is correct
13 Correct 3 ms 2892 KB Output is correct
14 Correct 2 ms 2892 KB Output is correct
15 Correct 2 ms 2892 KB Output is correct
16 Correct 2 ms 2892 KB Output is correct
17 Correct 2 ms 2892 KB Output is correct
18 Correct 2 ms 2892 KB Output is correct
19 Correct 2 ms 2892 KB Output is correct
20 Correct 2 ms 2888 KB Output is correct
21 Correct 2 ms 2892 KB Output is correct
22 Correct 2 ms 2892 KB Output is correct
23 Correct 2 ms 2892 KB Output is correct
24 Correct 2 ms 2764 KB Output is correct
25 Correct 2 ms 2892 KB Output is correct
26 Correct 2 ms 2844 KB Output is correct
27 Correct 2 ms 2892 KB Output is correct
28 Correct 2 ms 2764 KB Output is correct
29 Correct 2 ms 2892 KB Output is correct
30 Correct 2 ms 2892 KB Output is correct
31 Correct 2 ms 2892 KB Output is correct
32 Correct 2 ms 2892 KB Output is correct
33 Correct 2 ms 2892 KB Output is correct
34 Correct 2 ms 2892 KB Output is correct
35 Correct 2 ms 2892 KB Output is correct
36 Correct 2 ms 2892 KB Output is correct
37 Correct 2 ms 2892 KB Output is correct
38 Correct 2 ms 2892 KB Output is correct
39 Correct 142 ms 9016 KB Output is correct
40 Correct 138 ms 9052 KB Output is correct
41 Correct 79 ms 6852 KB Output is correct
42 Correct 19 ms 3824 KB Output is correct
43 Correct 2 ms 2892 KB Output is correct
44 Correct 2 ms 2892 KB Output is correct
45 Correct 2 ms 2892 KB Output is correct
46 Correct 3 ms 2892 KB Output is correct
47 Correct 2 ms 2892 KB Output is correct
48 Correct 2 ms 2892 KB Output is correct
49 Correct 2 ms 2892 KB Output is correct
50 Correct 2 ms 2892 KB Output is correct
51 Correct 3 ms 2892 KB Output is correct
52 Correct 2 ms 2892 KB Output is correct
53 Correct 2 ms 2892 KB Output is correct
54 Correct 2 ms 2892 KB Output is correct
55 Correct 2 ms 2892 KB Output is correct
56 Correct 2 ms 2892 KB Output is correct
57 Correct 494 ms 10428 KB Output is correct
58 Correct 443 ms 9980 KB Output is correct
59 Correct 402 ms 10364 KB Output is correct
60 Correct 391 ms 9852 KB Output is correct
61 Correct 449 ms 10404 KB Output is correct
62 Correct 476 ms 9904 KB Output is correct
63 Correct 557 ms 10392 KB Output is correct
64 Correct 550 ms 10628 KB Output is correct
65 Correct 534 ms 10388 KB Output is correct
66 Correct 580 ms 10512 KB Output is correct
67 Correct 407 ms 10280 KB Output is correct
68 Correct 378 ms 10180 KB Output is correct
69 Correct 370 ms 9812 KB Output is correct
70 Correct 348 ms 9880 KB Output is correct
71 Correct 2 ms 2764 KB Output is correct
72 Correct 9 ms 3020 KB Output is correct
73 Correct 10 ms 3140 KB Output is correct
74 Correct 9 ms 3152 KB Output is correct
75 Correct 10 ms 3020 KB Output is correct
76 Correct 12 ms 3084 KB Output is correct
77 Correct 12 ms 3148 KB Output is correct
78 Correct 12 ms 3036 KB Output is correct
79 Correct 9 ms 3148 KB Output is correct
80 Correct 370 ms 10172 KB Output is correct
81 Correct 382 ms 10152 KB Output is correct
82 Correct 438 ms 10240 KB Output is correct
83 Correct 467 ms 10384 KB Output is correct
84 Correct 8 ms 3020 KB Output is correct
85 Correct 7 ms 3080 KB Output is correct
86 Correct 8 ms 3020 KB Output is correct
87 Correct 8 ms 3020 KB Output is correct
88 Correct 9 ms 3020 KB Output is correct
89 Correct 8 ms 3032 KB Output is correct
90 Correct 8 ms 3020 KB Output is correct
91 Correct 10 ms 3148 KB Output is correct
92 Correct 9 ms 3020 KB Output is correct
93 Correct 9 ms 3020 KB Output is correct
94 Correct 2 ms 2892 KB Output is correct
95 Correct 2 ms 2892 KB Output is correct
96 Correct 2 ms 2892 KB Output is correct
97 Correct 2 ms 2892 KB Output is correct
98 Correct 2 ms 2892 KB Output is correct
99 Correct 2 ms 2892 KB Output is correct
100 Correct 2 ms 2892 KB Output is correct
101 Correct 3 ms 2892 KB Output is correct
102 Correct 2 ms 2896 KB Output is correct
103 Correct 2 ms 2892 KB Output is correct
104 Correct 15 ms 3532 KB Output is correct
105 Correct 29 ms 4408 KB Output is correct
106 Correct 2 ms 2892 KB Output is correct
107 Correct 69 ms 5476 KB Output is correct
108 Correct 85 ms 6268 KB Output is correct
109 Correct 3 ms 2892 KB Output is correct
110 Correct 158 ms 7552 KB Output is correct
111 Correct 143 ms 8472 KB Output is correct
112 Correct 3 ms 2892 KB Output is correct
113 Correct 280 ms 9492 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 786 ms 13356 KB Output is correct
2 Correct 765 ms 13684 KB Output is correct
3 Correct 745 ms 13708 KB Output is correct
4 Correct 760 ms 13640 KB Output is correct
5 Correct 736 ms 13680 KB Output is correct
6 Correct 800 ms 14348 KB Output is correct
7 Correct 800 ms 14220 KB Output is correct
8 Correct 859 ms 13420 KB Output is correct
9 Correct 733 ms 13408 KB Output is correct
10 Correct 810 ms 13872 KB Output is correct
11 Correct 3 ms 2892 KB Output is correct
12 Execution timed out 1056 ms 15688 KB Time limit exceeded
13 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 2892 KB Output is correct
2 Correct 2 ms 2892 KB Output is correct
3 Correct 2 ms 2892 KB Output is correct
4 Correct 2 ms 2892 KB Output is correct
5 Correct 2 ms 2892 KB Output is correct
6 Correct 2 ms 2892 KB Output is correct
7 Correct 2 ms 2888 KB Output is correct
8 Correct 2 ms 2892 KB Output is correct
9 Correct 2 ms 2892 KB Output is correct
10 Correct 2 ms 2892 KB Output is correct
11 Correct 2 ms 2764 KB Output is correct
12 Correct 2 ms 2892 KB Output is correct
13 Correct 2 ms 2844 KB Output is correct
14 Correct 2 ms 2892 KB Output is correct
15 Correct 2 ms 2764 KB Output is correct
16 Correct 2 ms 2892 KB Output is correct
17 Correct 2 ms 2892 KB Output is correct
18 Correct 2 ms 2892 KB Output is correct
19 Correct 2 ms 2892 KB Output is correct
20 Correct 2 ms 2892 KB Output is correct
21 Correct 2 ms 2892 KB Output is correct
22 Correct 2 ms 2892 KB Output is correct
23 Correct 2 ms 2892 KB Output is correct
24 Correct 2 ms 2892 KB Output is correct
25 Correct 2 ms 2892 KB Output is correct
26 Correct 6 ms 2892 KB Output is correct
27 Correct 9 ms 3032 KB Output is correct
28 Correct 12 ms 3188 KB Output is correct
29 Correct 5 ms 2892 KB Output is correct
30 Correct 9 ms 3148 KB Output is correct
31 Correct 14 ms 3128 KB Output is correct
32 Correct 5 ms 2904 KB Output is correct
33 Correct 10 ms 3020 KB Output is correct
34 Correct 12 ms 3192 KB Output is correct
35 Correct 3 ms 2892 KB Output is correct
36 Correct 2 ms 2892 KB Output is correct
37 Correct 3 ms 2892 KB Output is correct
38 Correct 2 ms 2764 KB Output is correct
39 Correct 2 ms 2892 KB Output is correct
40 Correct 3 ms 2892 KB Output is correct
41 Correct 3 ms 2896 KB Output is correct
42 Correct 2 ms 2892 KB Output is correct
43 Correct 2 ms 2892 KB Output is correct
44 Correct 2 ms 2892 KB Output is correct
45 Correct 2 ms 2896 KB Output is correct
46 Correct 2 ms 2892 KB Output is correct
47 Correct 2 ms 2892 KB Output is correct
48 Correct 2 ms 3020 KB Output is correct
49 Correct 3 ms 2896 KB Output is correct
50 Correct 2 ms 2896 KB Output is correct
51 Correct 3 ms 2892 KB Output is correct
52 Correct 2 ms 2764 KB Output is correct
53 Correct 2 ms 2768 KB Output is correct
54 Correct 5 ms 3020 KB Output is correct
55 Correct 5 ms 3032 KB Output is correct
56 Correct 18 ms 3148 KB Output is correct
57 Correct 27 ms 3244 KB Output is correct
58 Correct 9 ms 3036 KB Output is correct
59 Correct 10 ms 3036 KB Output is correct
60 Correct 22 ms 3148 KB Output is correct
61 Correct 27 ms 3152 KB Output is correct
62 Correct 12 ms 3036 KB Output is correct
63 Correct 12 ms 3072 KB Output is correct
64 Correct 42 ms 3140 KB Output is correct
65 Correct 18 ms 3148 KB Output is correct
66 Correct 10 ms 3048 KB Output is correct
67 Correct 9 ms 3020 KB Output is correct
68 Correct 16 ms 3148 KB Output is correct
69 Correct 16 ms 3124 KB Output is correct
70 Correct 24 ms 3120 KB Output is correct
71 Correct 24 ms 3120 KB Output is correct
72 Correct 12 ms 3168 KB Output is correct
73 Correct 13 ms 3148 KB Output is correct
74 Correct 11 ms 3164 KB Output is correct
75 Correct 10 ms 3036 KB Output is correct
76 Correct 10 ms 3140 KB Output is correct
77 Correct 9 ms 3040 KB Output is correct
78 Correct 27 ms 3124 KB Output is correct
79 Correct 24 ms 3232 KB Output is correct
80 Correct 32 ms 3240 KB Output is correct
81 Correct 32 ms 3236 KB Output is correct
82 Correct 11 ms 3036 KB Output is correct
83 Correct 10 ms 3148 KB Output is correct
84 Correct 33 ms 3164 KB Output is correct
85 Correct 34 ms 3236 KB Output is correct
86 Correct 19 ms 3148 KB Output is correct
87 Correct 13 ms 3160 KB Output is correct
88 Correct 17 ms 3276 KB Output is correct
89 Correct 19 ms 3136 KB Output is correct
90 Correct 22 ms 3132 KB Output is correct
91 Correct 24 ms 3124 KB Output is correct
92 Correct 9 ms 3020 KB Output is correct
93 Correct 8 ms 3148 KB Output is correct
94 Correct 8 ms 3036 KB Output is correct
95 Correct 8 ms 3020 KB Output is correct
96 Correct 9 ms 3036 KB Output is correct
97 Correct 11 ms 3020 KB Output is correct
98 Correct 9 ms 3020 KB Output is correct
99 Correct 11 ms 3036 KB Output is correct
100 Correct 9 ms 3020 KB Output is correct
101 Correct 9 ms 3020 KB Output is correct
102 Correct 2 ms 2892 KB Output is correct
103 Correct 2 ms 2892 KB Output is correct
104 Correct 2 ms 2892 KB Output is correct
105 Correct 2 ms 2892 KB Output is correct
106 Correct 2 ms 2892 KB Output is correct
107 Correct 2 ms 2900 KB Output is correct
108 Correct 2 ms 2892 KB Output is correct
109 Correct 2 ms 2892 KB Output is correct
110 Correct 2 ms 2892 KB Output is correct
111 Correct 3 ms 2892 KB Output is correct
112 Correct 3 ms 2892 KB Output is correct
113 Correct 3 ms 2904 KB Output is correct
114 Correct 4 ms 2892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 145 ms 9116 KB Output is correct
2 Correct 136 ms 9016 KB Output is correct
3 Correct 82 ms 6880 KB Output is correct
4 Correct 18 ms 3912 KB Output is correct
5 Correct 15 ms 3552 KB Output is correct
6 Correct 31 ms 4456 KB Output is correct
7 Correct 2 ms 2892 KB Output is correct
8 Correct 81 ms 5476 KB Output is correct
9 Correct 95 ms 6248 KB Output is correct
10 Correct 2 ms 2892 KB Output is correct
11 Correct 122 ms 7444 KB Output is correct
12 Correct 190 ms 8372 KB Output is correct
13 Correct 3 ms 2892 KB Output is correct
14 Correct 2 ms 2892 KB Output is correct
15 Correct 2 ms 2892 KB Output is correct
16 Correct 2 ms 2892 KB Output is correct
17 Correct 2 ms 2892 KB Output is correct
18 Correct 2 ms 2892 KB Output is correct
19 Correct 2 ms 2892 KB Output is correct
20 Correct 2 ms 2888 KB Output is correct
21 Correct 2 ms 2892 KB Output is correct
22 Correct 2 ms 2892 KB Output is correct
23 Correct 2 ms 2892 KB Output is correct
24 Correct 2 ms 2764 KB Output is correct
25 Correct 2 ms 2892 KB Output is correct
26 Correct 2 ms 2844 KB Output is correct
27 Correct 2 ms 2892 KB Output is correct
28 Correct 2 ms 2764 KB Output is correct
29 Correct 2 ms 2892 KB Output is correct
30 Correct 2 ms 2892 KB Output is correct
31 Correct 2 ms 2892 KB Output is correct
32 Correct 2 ms 2892 KB Output is correct
33 Correct 2 ms 2892 KB Output is correct
34 Correct 2 ms 2892 KB Output is correct
35 Correct 2 ms 2892 KB Output is correct
36 Correct 2 ms 2892 KB Output is correct
37 Correct 2 ms 2892 KB Output is correct
38 Correct 2 ms 2892 KB Output is correct
39 Correct 142 ms 9016 KB Output is correct
40 Correct 138 ms 9052 KB Output is correct
41 Correct 79 ms 6852 KB Output is correct
42 Correct 19 ms 3824 KB Output is correct
43 Correct 2 ms 2892 KB Output is correct
44 Correct 2 ms 2892 KB Output is correct
45 Correct 2 ms 2892 KB Output is correct
46 Correct 3 ms 2892 KB Output is correct
47 Correct 2 ms 2892 KB Output is correct
48 Correct 2 ms 2892 KB Output is correct
49 Correct 2 ms 2892 KB Output is correct
50 Correct 2 ms 2892 KB Output is correct
51 Correct 3 ms 2892 KB Output is correct
52 Correct 2 ms 2892 KB Output is correct
53 Correct 2 ms 2892 KB Output is correct
54 Correct 2 ms 2892 KB Output is correct
55 Correct 2 ms 2892 KB Output is correct
56 Correct 2 ms 2892 KB Output is correct
57 Correct 494 ms 10428 KB Output is correct
58 Correct 443 ms 9980 KB Output is correct
59 Correct 402 ms 10364 KB Output is correct
60 Correct 391 ms 9852 KB Output is correct
61 Correct 449 ms 10404 KB Output is correct
62 Correct 476 ms 9904 KB Output is correct
63 Correct 557 ms 10392 KB Output is correct
64 Correct 550 ms 10628 KB Output is correct
65 Correct 534 ms 10388 KB Output is correct
66 Correct 580 ms 10512 KB Output is correct
67 Correct 407 ms 10280 KB Output is correct
68 Correct 378 ms 10180 KB Output is correct
69 Correct 370 ms 9812 KB Output is correct
70 Correct 348 ms 9880 KB Output is correct
71 Correct 2 ms 2764 KB Output is correct
72 Correct 9 ms 3020 KB Output is correct
73 Correct 10 ms 3140 KB Output is correct
74 Correct 9 ms 3152 KB Output is correct
75 Correct 10 ms 3020 KB Output is correct
76 Correct 12 ms 3084 KB Output is correct
77 Correct 12 ms 3148 KB Output is correct
78 Correct 12 ms 3036 KB Output is correct
79 Correct 9 ms 3148 KB Output is correct
80 Correct 370 ms 10172 KB Output is correct
81 Correct 382 ms 10152 KB Output is correct
82 Correct 438 ms 10240 KB Output is correct
83 Correct 467 ms 10384 KB Output is correct
84 Correct 8 ms 3020 KB Output is correct
85 Correct 7 ms 3080 KB Output is correct
86 Correct 8 ms 3020 KB Output is correct
87 Correct 8 ms 3020 KB Output is correct
88 Correct 9 ms 3020 KB Output is correct
89 Correct 8 ms 3032 KB Output is correct
90 Correct 8 ms 3020 KB Output is correct
91 Correct 10 ms 3148 KB Output is correct
92 Correct 9 ms 3020 KB Output is correct
93 Correct 9 ms 3020 KB Output is correct
94 Correct 2 ms 2892 KB Output is correct
95 Correct 2 ms 2892 KB Output is correct
96 Correct 2 ms 2892 KB Output is correct
97 Correct 2 ms 2892 KB Output is correct
98 Correct 2 ms 2892 KB Output is correct
99 Correct 2 ms 2892 KB Output is correct
100 Correct 2 ms 2892 KB Output is correct
101 Correct 3 ms 2892 KB Output is correct
102 Correct 2 ms 2896 KB Output is correct
103 Correct 2 ms 2892 KB Output is correct
104 Correct 15 ms 3532 KB Output is correct
105 Correct 29 ms 4408 KB Output is correct
106 Correct 2 ms 2892 KB Output is correct
107 Correct 69 ms 5476 KB Output is correct
108 Correct 85 ms 6268 KB Output is correct
109 Correct 3 ms 2892 KB Output is correct
110 Correct 158 ms 7552 KB Output is correct
111 Correct 143 ms 8472 KB Output is correct
112 Correct 3 ms 2892 KB Output is correct
113 Correct 280 ms 9492 KB Output is correct
114 Correct 786 ms 13356 KB Output is correct
115 Correct 765 ms 13684 KB Output is correct
116 Correct 745 ms 13708 KB Output is correct
117 Correct 760 ms 13640 KB Output is correct
118 Correct 736 ms 13680 KB Output is correct
119 Correct 800 ms 14348 KB Output is correct
120 Correct 800 ms 14220 KB Output is correct
121 Correct 859 ms 13420 KB Output is correct
122 Correct 733 ms 13408 KB Output is correct
123 Correct 810 ms 13872 KB Output is correct
124 Correct 3 ms 2892 KB Output is correct
125 Execution timed out 1056 ms 15688 KB Time limit exceeded
126 Halted 0 ms 0 KB -