Submission #54888

# Submission time Handle Problem Language Result Execution time Memory
54888 2018-07-05T08:55:33 Z WA_TLE Detecting Molecules (IOI16_molecules) C++14
100 / 100
85 ms 32856 KB
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<string>
#include<chrono>
#include<functional>
#include<iterator>
#include<random>
#include<unordered_set>
#include<array>
#include<map>
#include<iomanip>
#include<assert.h>
#include<bitset>
#include<stack>
using namespace std;
typedef long long int llint;
typedef long double lldo;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define fir first
#define sec second
#define res resize
#define ins insert
#define era erase

/*
cout<<setprecision(20)
cin.tie(0);
ios::sync_with_stdio(false);
*/
const llint mod=1e9+7;
const llint big=2.19e15+1;
const long double pai=3.141592653589793238462643383279502884197;
const long double eps=1e-15;
template <class T,class U>void mineq(T& a,U b){if(a>b){a=b;}}
template <class T,class U>void maxeq(T& a,U b){if(a<b){a=b;}}
llint gcd(llint a,llint b){if(a%b==0){return b;}else return gcd(b,a%b);}
//llint lcm(llint a,llint b){return a/gcd(a,b)*b;}
template<class T> void SO(T& ve){sort(ve.begin(),ve.end());}
template<class T> void REV(T& ve){reverse(ve.begin(),ve.end());}
template<class T>llint LBI(vector<T>&ar,T in){return lower_bound(ar.begin(),ar.end(),in)-ar.begin();}
template<class T>llint UBI(vector<T>&ar,T in){return upper_bound(ar.begin(),ar.end(),in)-ar.begin();}
std::vector<int> find_subset(int l, int u, std::vector<int> w) {
	int i,j,k,n=w.size();
	vector<pair<llint,int>>ww(n);
	for(i=0;i<n;i++){ww[i]=mp(w[i],i);}
	SO(ww);
	llint ka=0,om=0;
	bool can=false;
	for(i=0;i<n;i++){
		ka+=ww[i].fir;
		om+=ww[n-i-1].fir;
		if(l<=om){can=true;i++;break;}
	}
	if(!can||u<ka){return vector<int>();}
	//i個おく
	//j個重い
	llint gen=0;
	for(j=0;j<i;j++){gen+=ww[j].fir;}
	for(j=0;j<=i;j++){
		if(u<gen){return vector<int>();}//おもすぎ
		if(l<=gen){
			vector<int>ans;
			for(k=0;k<i-j;k++){ans.pub(ww[k].sec);}
			for(k=n-j;k<n;k++){ans.pub(ww[k].sec);}
			SO(ans);
			return ans;
		}
		gen-=ww[i-j-1].fir;
		gen+=ww[n-j-1].fir;
		if(j==i){break;}
	}
	return vector<int>();
}
# Verdict Execution time Memory Grader output
1 Correct 3 ms 504 KB OK (n = 1, answer = NO)
2 Correct 3 ms 504 KB OK (n = 1, answer = NO)
3 Correct 2 ms 504 KB OK (n = 1, answer = YES)
4 Correct 2 ms 624 KB OK (n = 2, answer = YES)
5 Correct 2 ms 624 KB OK (n = 2, answer = YES)
6 Correct 2 ms 688 KB OK (n = 3, answer = YES)
7 Correct 2 ms 688 KB OK (n = 3, answer = YES)
8 Correct 2 ms 688 KB OK (n = 3, answer = YES)
9 Correct 2 ms 688 KB OK (n = 3, answer = YES)
10 Correct 2 ms 688 KB OK (n = 3, answer = YES)
11 Correct 2 ms 740 KB OK (n = 3, answer = YES)
12 Correct 3 ms 740 KB OK (n = 3, answer = YES)
13 Correct 2 ms 796 KB OK (n = 3, answer = NO)
14 Correct 2 ms 796 KB OK (n = 3, answer = YES)
15 Correct 3 ms 796 KB OK (n = 3, answer = YES)
16 Correct 3 ms 980 KB OK (n = 3, answer = NO)
17 Correct 2 ms 980 KB OK (n = 3, answer = NO)
18 Correct 3 ms 980 KB OK (n = 100, answer = NO)
19 Correct 2 ms 980 KB OK (n = 100, answer = YES)
# Verdict Execution time Memory Grader output
1 Correct 2 ms 980 KB OK (n = 12, answer = YES)
2 Correct 2 ms 980 KB OK (n = 12, answer = YES)
3 Correct 2 ms 980 KB OK (n = 12, answer = NO)
4 Correct 2 ms 980 KB OK (n = 12, answer = NO)
5 Correct 3 ms 980 KB OK (n = 12, answer = YES)
6 Correct 3 ms 980 KB OK (n = 12, answer = YES)
7 Correct 2 ms 980 KB OK (n = 12, answer = YES)
8 Correct 2 ms 980 KB OK (n = 12, answer = YES)
9 Correct 2 ms 980 KB OK (n = 6, answer = YES)
10 Correct 3 ms 980 KB OK (n = 12, answer = YES)
11 Correct 3 ms 980 KB OK (n = 100, answer = NO)
12 Correct 2 ms 980 KB OK (n = 100, answer = YES)
13 Correct 3 ms 980 KB OK (n = 100, answer = NO)
14 Correct 2 ms 980 KB OK (n = 100, answer = YES)
15 Correct 2 ms 980 KB OK (n = 100, answer = YES)
16 Correct 2 ms 984 KB OK (n = 100, answer = YES)
17 Correct 2 ms 984 KB OK (n = 100, answer = YES)
# Verdict Execution time Memory Grader output
1 Correct 3 ms 504 KB OK (n = 1, answer = NO)
2 Correct 3 ms 504 KB OK (n = 1, answer = NO)
3 Correct 2 ms 504 KB OK (n = 1, answer = YES)
4 Correct 2 ms 624 KB OK (n = 2, answer = YES)
5 Correct 2 ms 624 KB OK (n = 2, answer = YES)
6 Correct 2 ms 688 KB OK (n = 3, answer = YES)
7 Correct 2 ms 688 KB OK (n = 3, answer = YES)
8 Correct 2 ms 688 KB OK (n = 3, answer = YES)
9 Correct 2 ms 688 KB OK (n = 3, answer = YES)
10 Correct 2 ms 688 KB OK (n = 3, answer = YES)
11 Correct 2 ms 740 KB OK (n = 3, answer = YES)
12 Correct 3 ms 740 KB OK (n = 3, answer = YES)
13 Correct 2 ms 796 KB OK (n = 3, answer = NO)
14 Correct 2 ms 796 KB OK (n = 3, answer = YES)
15 Correct 3 ms 796 KB OK (n = 3, answer = YES)
16 Correct 3 ms 980 KB OK (n = 3, answer = NO)
17 Correct 2 ms 980 KB OK (n = 3, answer = NO)
18 Correct 3 ms 980 KB OK (n = 100, answer = NO)
19 Correct 2 ms 980 KB OK (n = 100, answer = YES)
20 Correct 2 ms 980 KB OK (n = 12, answer = YES)
21 Correct 2 ms 980 KB OK (n = 12, answer = YES)
22 Correct 2 ms 980 KB OK (n = 12, answer = NO)
23 Correct 2 ms 980 KB OK (n = 12, answer = NO)
24 Correct 3 ms 980 KB OK (n = 12, answer = YES)
25 Correct 3 ms 980 KB OK (n = 12, answer = YES)
26 Correct 2 ms 980 KB OK (n = 12, answer = YES)
27 Correct 2 ms 980 KB OK (n = 12, answer = YES)
28 Correct 2 ms 980 KB OK (n = 6, answer = YES)
29 Correct 3 ms 980 KB OK (n = 12, answer = YES)
30 Correct 3 ms 980 KB OK (n = 100, answer = NO)
31 Correct 2 ms 980 KB OK (n = 100, answer = YES)
32 Correct 3 ms 980 KB OK (n = 100, answer = NO)
33 Correct 2 ms 980 KB OK (n = 100, answer = YES)
34 Correct 2 ms 980 KB OK (n = 100, answer = YES)
35 Correct 2 ms 984 KB OK (n = 100, answer = YES)
36 Correct 2 ms 984 KB OK (n = 100, answer = YES)
37 Correct 3 ms 984 KB OK (n = 28, answer = YES)
38 Correct 2 ms 984 KB OK (n = 27, answer = YES)
39 Correct 2 ms 984 KB OK (n = 90, answer = YES)
40 Correct 4 ms 984 KB OK (n = 100, answer = YES)
41 Correct 2 ms 984 KB OK (n = 100, answer = YES)
42 Correct 2 ms 984 KB OK (n = 10, answer = YES)
43 Correct 3 ms 1036 KB OK (n = 100, answer = YES)
44 Correct 2 ms 1040 KB OK (n = 100, answer = YES)
45 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
46 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
47 Correct 3 ms 1040 KB OK (n = 100, answer = NO)
48 Correct 2 ms 1040 KB OK (n = 100, answer = NO)
49 Correct 3 ms 1040 KB OK (n = 100, answer = NO)
50 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
51 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
52 Correct 3 ms 1084 KB OK (n = 100, answer = YES)
53 Correct 3 ms 1084 KB OK (n = 100, answer = YES)
54 Correct 2 ms 1084 KB OK (n = 100, answer = YES)
# Verdict Execution time Memory Grader output
1 Correct 3 ms 504 KB OK (n = 1, answer = NO)
2 Correct 3 ms 504 KB OK (n = 1, answer = NO)
3 Correct 2 ms 504 KB OK (n = 1, answer = YES)
4 Correct 2 ms 624 KB OK (n = 2, answer = YES)
5 Correct 2 ms 624 KB OK (n = 2, answer = YES)
6 Correct 2 ms 688 KB OK (n = 3, answer = YES)
7 Correct 2 ms 688 KB OK (n = 3, answer = YES)
8 Correct 2 ms 688 KB OK (n = 3, answer = YES)
9 Correct 2 ms 688 KB OK (n = 3, answer = YES)
10 Correct 2 ms 688 KB OK (n = 3, answer = YES)
11 Correct 2 ms 740 KB OK (n = 3, answer = YES)
12 Correct 3 ms 740 KB OK (n = 3, answer = YES)
13 Correct 2 ms 796 KB OK (n = 3, answer = NO)
14 Correct 2 ms 796 KB OK (n = 3, answer = YES)
15 Correct 3 ms 796 KB OK (n = 3, answer = YES)
16 Correct 3 ms 980 KB OK (n = 3, answer = NO)
17 Correct 2 ms 980 KB OK (n = 3, answer = NO)
18 Correct 3 ms 980 KB OK (n = 100, answer = NO)
19 Correct 2 ms 980 KB OK (n = 100, answer = YES)
20 Correct 2 ms 980 KB OK (n = 12, answer = YES)
21 Correct 2 ms 980 KB OK (n = 12, answer = YES)
22 Correct 2 ms 980 KB OK (n = 12, answer = NO)
23 Correct 2 ms 980 KB OK (n = 12, answer = NO)
24 Correct 3 ms 980 KB OK (n = 12, answer = YES)
25 Correct 3 ms 980 KB OK (n = 12, answer = YES)
26 Correct 2 ms 980 KB OK (n = 12, answer = YES)
27 Correct 2 ms 980 KB OK (n = 12, answer = YES)
28 Correct 2 ms 980 KB OK (n = 6, answer = YES)
29 Correct 3 ms 980 KB OK (n = 12, answer = YES)
30 Correct 3 ms 980 KB OK (n = 100, answer = NO)
31 Correct 2 ms 980 KB OK (n = 100, answer = YES)
32 Correct 3 ms 980 KB OK (n = 100, answer = NO)
33 Correct 2 ms 980 KB OK (n = 100, answer = YES)
34 Correct 2 ms 980 KB OK (n = 100, answer = YES)
35 Correct 2 ms 984 KB OK (n = 100, answer = YES)
36 Correct 2 ms 984 KB OK (n = 100, answer = YES)
37 Correct 3 ms 984 KB OK (n = 28, answer = YES)
38 Correct 2 ms 984 KB OK (n = 27, answer = YES)
39 Correct 2 ms 984 KB OK (n = 90, answer = YES)
40 Correct 4 ms 984 KB OK (n = 100, answer = YES)
41 Correct 2 ms 984 KB OK (n = 100, answer = YES)
42 Correct 2 ms 984 KB OK (n = 10, answer = YES)
43 Correct 3 ms 1036 KB OK (n = 100, answer = YES)
44 Correct 2 ms 1040 KB OK (n = 100, answer = YES)
45 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
46 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
47 Correct 3 ms 1040 KB OK (n = 100, answer = NO)
48 Correct 2 ms 1040 KB OK (n = 100, answer = NO)
49 Correct 3 ms 1040 KB OK (n = 100, answer = NO)
50 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
51 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
52 Correct 3 ms 1084 KB OK (n = 100, answer = YES)
53 Correct 3 ms 1084 KB OK (n = 100, answer = YES)
54 Correct 2 ms 1084 KB OK (n = 100, answer = YES)
55 Correct 6 ms 1340 KB OK (n = 10000, answer = YES)
56 Correct 6 ms 1372 KB OK (n = 10000, answer = YES)
57 Correct 6 ms 1428 KB OK (n = 10000, answer = YES)
58 Correct 6 ms 1444 KB OK (n = 10000, answer = YES)
59 Correct 5 ms 1596 KB OK (n = 10000, answer = YES)
60 Correct 7 ms 1644 KB OK (n = 10000, answer = YES)
61 Correct 7 ms 1644 KB OK (n = 10000, answer = NO)
62 Correct 7 ms 1680 KB OK (n = 10000, answer = YES)
63 Correct 5 ms 1728 KB OK (n = 10000, answer = NO)
64 Correct 5 ms 1780 KB OK (n = 10000, answer = YES)
65 Correct 7 ms 1824 KB OK (n = 10000, answer = YES)
66 Correct 5 ms 1880 KB OK (n = 10000, answer = YES)
67 Correct 5 ms 1932 KB OK (n = 10000, answer = YES)
68 Correct 6 ms 1968 KB OK (n = 10000, answer = YES)
69 Correct 5 ms 2000 KB OK (n = 10000, answer = YES)
70 Correct 5 ms 2044 KB OK (n = 10000, answer = YES)
71 Correct 6 ms 2060 KB OK (n = 10000, answer = YES)
72 Correct 2 ms 2060 KB OK (n = 865, answer = YES)
73 Correct 3 ms 2060 KB OK (n = 820, answer = YES)
# Verdict Execution time Memory Grader output
1 Correct 3 ms 504 KB OK (n = 1, answer = NO)
2 Correct 3 ms 504 KB OK (n = 1, answer = NO)
3 Correct 2 ms 504 KB OK (n = 1, answer = YES)
4 Correct 2 ms 624 KB OK (n = 2, answer = YES)
5 Correct 2 ms 624 KB OK (n = 2, answer = YES)
6 Correct 2 ms 688 KB OK (n = 3, answer = YES)
7 Correct 2 ms 688 KB OK (n = 3, answer = YES)
8 Correct 2 ms 688 KB OK (n = 3, answer = YES)
9 Correct 2 ms 688 KB OK (n = 3, answer = YES)
10 Correct 2 ms 688 KB OK (n = 3, answer = YES)
11 Correct 2 ms 740 KB OK (n = 3, answer = YES)
12 Correct 3 ms 740 KB OK (n = 3, answer = YES)
13 Correct 2 ms 796 KB OK (n = 3, answer = NO)
14 Correct 2 ms 796 KB OK (n = 3, answer = YES)
15 Correct 3 ms 796 KB OK (n = 3, answer = YES)
16 Correct 3 ms 980 KB OK (n = 3, answer = NO)
17 Correct 2 ms 980 KB OK (n = 3, answer = NO)
18 Correct 3 ms 980 KB OK (n = 100, answer = NO)
19 Correct 2 ms 980 KB OK (n = 100, answer = YES)
20 Correct 2 ms 980 KB OK (n = 12, answer = YES)
21 Correct 2 ms 980 KB OK (n = 12, answer = YES)
22 Correct 2 ms 980 KB OK (n = 12, answer = NO)
23 Correct 2 ms 980 KB OK (n = 12, answer = NO)
24 Correct 3 ms 980 KB OK (n = 12, answer = YES)
25 Correct 3 ms 980 KB OK (n = 12, answer = YES)
26 Correct 2 ms 980 KB OK (n = 12, answer = YES)
27 Correct 2 ms 980 KB OK (n = 12, answer = YES)
28 Correct 2 ms 980 KB OK (n = 6, answer = YES)
29 Correct 3 ms 980 KB OK (n = 12, answer = YES)
30 Correct 3 ms 980 KB OK (n = 100, answer = NO)
31 Correct 2 ms 980 KB OK (n = 100, answer = YES)
32 Correct 3 ms 980 KB OK (n = 100, answer = NO)
33 Correct 2 ms 980 KB OK (n = 100, answer = YES)
34 Correct 2 ms 980 KB OK (n = 100, answer = YES)
35 Correct 2 ms 984 KB OK (n = 100, answer = YES)
36 Correct 2 ms 984 KB OK (n = 100, answer = YES)
37 Correct 3 ms 984 KB OK (n = 28, answer = YES)
38 Correct 2 ms 984 KB OK (n = 27, answer = YES)
39 Correct 2 ms 984 KB OK (n = 90, answer = YES)
40 Correct 4 ms 984 KB OK (n = 100, answer = YES)
41 Correct 2 ms 984 KB OK (n = 100, answer = YES)
42 Correct 2 ms 984 KB OK (n = 10, answer = YES)
43 Correct 3 ms 1036 KB OK (n = 100, answer = YES)
44 Correct 2 ms 1040 KB OK (n = 100, answer = YES)
45 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
46 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
47 Correct 3 ms 1040 KB OK (n = 100, answer = NO)
48 Correct 2 ms 1040 KB OK (n = 100, answer = NO)
49 Correct 3 ms 1040 KB OK (n = 100, answer = NO)
50 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
51 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
52 Correct 3 ms 1084 KB OK (n = 100, answer = YES)
53 Correct 3 ms 1084 KB OK (n = 100, answer = YES)
54 Correct 2 ms 1084 KB OK (n = 100, answer = YES)
55 Correct 6 ms 1340 KB OK (n = 10000, answer = YES)
56 Correct 6 ms 1372 KB OK (n = 10000, answer = YES)
57 Correct 6 ms 1428 KB OK (n = 10000, answer = YES)
58 Correct 6 ms 1444 KB OK (n = 10000, answer = YES)
59 Correct 5 ms 1596 KB OK (n = 10000, answer = YES)
60 Correct 7 ms 1644 KB OK (n = 10000, answer = YES)
61 Correct 7 ms 1644 KB OK (n = 10000, answer = NO)
62 Correct 7 ms 1680 KB OK (n = 10000, answer = YES)
63 Correct 5 ms 1728 KB OK (n = 10000, answer = NO)
64 Correct 5 ms 1780 KB OK (n = 10000, answer = YES)
65 Correct 7 ms 1824 KB OK (n = 10000, answer = YES)
66 Correct 5 ms 1880 KB OK (n = 10000, answer = YES)
67 Correct 5 ms 1932 KB OK (n = 10000, answer = YES)
68 Correct 6 ms 1968 KB OK (n = 10000, answer = YES)
69 Correct 5 ms 2000 KB OK (n = 10000, answer = YES)
70 Correct 5 ms 2044 KB OK (n = 10000, answer = YES)
71 Correct 6 ms 2060 KB OK (n = 10000, answer = YES)
72 Correct 2 ms 2060 KB OK (n = 865, answer = YES)
73 Correct 3 ms 2060 KB OK (n = 820, answer = YES)
74 Correct 4 ms 2060 KB OK (n = 7500, answer = NO)
75 Correct 6 ms 2148 KB OK (n = 10000, answer = NO)
76 Correct 5 ms 2176 KB OK (n = 10000, answer = NO)
77 Correct 6 ms 2208 KB OK (n = 10000, answer = NO)
78 Correct 6 ms 2236 KB OK (n = 10000, answer = NO)
79 Correct 6 ms 2268 KB OK (n = 10000, answer = YES)
80 Correct 7 ms 2308 KB OK (n = 10000, answer = YES)
81 Correct 5 ms 2364 KB OK (n = 10000, answer = YES)
82 Correct 6 ms 2376 KB OK (n = 10000, answer = YES)
83 Correct 5 ms 2480 KB OK (n = 10000, answer = NO)
84 Correct 6 ms 2552 KB OK (n = 10000, answer = YES)
85 Correct 7 ms 2596 KB OK (n = 10000, answer = NO)
86 Correct 7 ms 2668 KB OK (n = 10000, answer = YES)
87 Correct 8 ms 2708 KB OK (n = 10000, answer = YES)
88 Correct 6 ms 2708 KB OK (n = 10000, answer = YES)
89 Correct 4 ms 2800 KB OK (n = 10000, answer = YES)
90 Correct 4 ms 2880 KB OK (n = 10000, answer = YES)
91 Correct 4 ms 2924 KB OK (n = 10000, answer = YES)
92 Correct 5 ms 2936 KB OK (n = 10000, answer = YES)
93 Correct 4 ms 3004 KB OK (n = 10000, answer = YES)
# Verdict Execution time Memory Grader output
1 Correct 3 ms 504 KB OK (n = 1, answer = NO)
2 Correct 3 ms 504 KB OK (n = 1, answer = NO)
3 Correct 2 ms 504 KB OK (n = 1, answer = YES)
4 Correct 2 ms 624 KB OK (n = 2, answer = YES)
5 Correct 2 ms 624 KB OK (n = 2, answer = YES)
6 Correct 2 ms 688 KB OK (n = 3, answer = YES)
7 Correct 2 ms 688 KB OK (n = 3, answer = YES)
8 Correct 2 ms 688 KB OK (n = 3, answer = YES)
9 Correct 2 ms 688 KB OK (n = 3, answer = YES)
10 Correct 2 ms 688 KB OK (n = 3, answer = YES)
11 Correct 2 ms 740 KB OK (n = 3, answer = YES)
12 Correct 3 ms 740 KB OK (n = 3, answer = YES)
13 Correct 2 ms 796 KB OK (n = 3, answer = NO)
14 Correct 2 ms 796 KB OK (n = 3, answer = YES)
15 Correct 3 ms 796 KB OK (n = 3, answer = YES)
16 Correct 3 ms 980 KB OK (n = 3, answer = NO)
17 Correct 2 ms 980 KB OK (n = 3, answer = NO)
18 Correct 3 ms 980 KB OK (n = 100, answer = NO)
19 Correct 2 ms 980 KB OK (n = 100, answer = YES)
20 Correct 2 ms 980 KB OK (n = 12, answer = YES)
21 Correct 2 ms 980 KB OK (n = 12, answer = YES)
22 Correct 2 ms 980 KB OK (n = 12, answer = NO)
23 Correct 2 ms 980 KB OK (n = 12, answer = NO)
24 Correct 3 ms 980 KB OK (n = 12, answer = YES)
25 Correct 3 ms 980 KB OK (n = 12, answer = YES)
26 Correct 2 ms 980 KB OK (n = 12, answer = YES)
27 Correct 2 ms 980 KB OK (n = 12, answer = YES)
28 Correct 2 ms 980 KB OK (n = 6, answer = YES)
29 Correct 3 ms 980 KB OK (n = 12, answer = YES)
30 Correct 3 ms 980 KB OK (n = 100, answer = NO)
31 Correct 2 ms 980 KB OK (n = 100, answer = YES)
32 Correct 3 ms 980 KB OK (n = 100, answer = NO)
33 Correct 2 ms 980 KB OK (n = 100, answer = YES)
34 Correct 2 ms 980 KB OK (n = 100, answer = YES)
35 Correct 2 ms 984 KB OK (n = 100, answer = YES)
36 Correct 2 ms 984 KB OK (n = 100, answer = YES)
37 Correct 3 ms 984 KB OK (n = 28, answer = YES)
38 Correct 2 ms 984 KB OK (n = 27, answer = YES)
39 Correct 2 ms 984 KB OK (n = 90, answer = YES)
40 Correct 4 ms 984 KB OK (n = 100, answer = YES)
41 Correct 2 ms 984 KB OK (n = 100, answer = YES)
42 Correct 2 ms 984 KB OK (n = 10, answer = YES)
43 Correct 3 ms 1036 KB OK (n = 100, answer = YES)
44 Correct 2 ms 1040 KB OK (n = 100, answer = YES)
45 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
46 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
47 Correct 3 ms 1040 KB OK (n = 100, answer = NO)
48 Correct 2 ms 1040 KB OK (n = 100, answer = NO)
49 Correct 3 ms 1040 KB OK (n = 100, answer = NO)
50 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
51 Correct 3 ms 1040 KB OK (n = 100, answer = YES)
52 Correct 3 ms 1084 KB OK (n = 100, answer = YES)
53 Correct 3 ms 1084 KB OK (n = 100, answer = YES)
54 Correct 2 ms 1084 KB OK (n = 100, answer = YES)
55 Correct 6 ms 1340 KB OK (n = 10000, answer = YES)
56 Correct 6 ms 1372 KB OK (n = 10000, answer = YES)
57 Correct 6 ms 1428 KB OK (n = 10000, answer = YES)
58 Correct 6 ms 1444 KB OK (n = 10000, answer = YES)
59 Correct 5 ms 1596 KB OK (n = 10000, answer = YES)
60 Correct 7 ms 1644 KB OK (n = 10000, answer = YES)
61 Correct 7 ms 1644 KB OK (n = 10000, answer = NO)
62 Correct 7 ms 1680 KB OK (n = 10000, answer = YES)
63 Correct 5 ms 1728 KB OK (n = 10000, answer = NO)
64 Correct 5 ms 1780 KB OK (n = 10000, answer = YES)
65 Correct 7 ms 1824 KB OK (n = 10000, answer = YES)
66 Correct 5 ms 1880 KB OK (n = 10000, answer = YES)
67 Correct 5 ms 1932 KB OK (n = 10000, answer = YES)
68 Correct 6 ms 1968 KB OK (n = 10000, answer = YES)
69 Correct 5 ms 2000 KB OK (n = 10000, answer = YES)
70 Correct 5 ms 2044 KB OK (n = 10000, answer = YES)
71 Correct 6 ms 2060 KB OK (n = 10000, answer = YES)
72 Correct 2 ms 2060 KB OK (n = 865, answer = YES)
73 Correct 3 ms 2060 KB OK (n = 820, answer = YES)
74 Correct 4 ms 2060 KB OK (n = 7500, answer = NO)
75 Correct 6 ms 2148 KB OK (n = 10000, answer = NO)
76 Correct 5 ms 2176 KB OK (n = 10000, answer = NO)
77 Correct 6 ms 2208 KB OK (n = 10000, answer = NO)
78 Correct 6 ms 2236 KB OK (n = 10000, answer = NO)
79 Correct 6 ms 2268 KB OK (n = 10000, answer = YES)
80 Correct 7 ms 2308 KB OK (n = 10000, answer = YES)
81 Correct 5 ms 2364 KB OK (n = 10000, answer = YES)
82 Correct 6 ms 2376 KB OK (n = 10000, answer = YES)
83 Correct 5 ms 2480 KB OK (n = 10000, answer = NO)
84 Correct 6 ms 2552 KB OK (n = 10000, answer = YES)
85 Correct 7 ms 2596 KB OK (n = 10000, answer = NO)
86 Correct 7 ms 2668 KB OK (n = 10000, answer = YES)
87 Correct 8 ms 2708 KB OK (n = 10000, answer = YES)
88 Correct 6 ms 2708 KB OK (n = 10000, answer = YES)
89 Correct 4 ms 2800 KB OK (n = 10000, answer = YES)
90 Correct 4 ms 2880 KB OK (n = 10000, answer = YES)
91 Correct 4 ms 2924 KB OK (n = 10000, answer = YES)
92 Correct 5 ms 2936 KB OK (n = 10000, answer = YES)
93 Correct 4 ms 3004 KB OK (n = 10000, answer = YES)
94 Correct 3 ms 3004 KB OK (n = 1, answer = YES)
95 Correct 2 ms 3004 KB OK (n = 3, answer = YES)
96 Correct 2 ms 3004 KB OK (n = 3, answer = NO)
97 Correct 3 ms 3004 KB OK (n = 3, answer = YES)
98 Correct 40 ms 7032 KB OK (n = 150000, answer = NO)
99 Correct 76 ms 9888 KB OK (n = 200000, answer = YES)
100 Correct 81 ms 11972 KB OK (n = 200000, answer = NO)
101 Correct 76 ms 13620 KB OK (n = 200000, answer = YES)
102 Correct 68 ms 15372 KB OK (n = 200000, answer = YES)
103 Correct 71 ms 16908 KB OK (n = 200000, answer = YES)
104 Correct 63 ms 18416 KB OK (n = 200000, answer = YES)
105 Correct 60 ms 19092 KB OK (n = 200000, answer = NO)
106 Correct 64 ms 20640 KB OK (n = 200000, answer = YES)
107 Correct 71 ms 22548 KB OK (n = 200000, answer = NO)
108 Correct 55 ms 23416 KB OK (n = 200000, answer = NO)
109 Correct 74 ms 24076 KB OK (n = 200000, answer = NO)
110 Correct 66 ms 25088 KB OK (n = 200000, answer = YES)
111 Correct 54 ms 26224 KB OK (n = 200000, answer = YES)
112 Correct 43 ms 27376 KB OK (n = 200000, answer = YES)
113 Correct 37 ms 28600 KB OK (n = 200000, answer = YES)
114 Correct 41 ms 29772 KB OK (n = 200000, answer = YES)
115 Correct 80 ms 30936 KB OK (n = 200000, answer = YES)
116 Correct 85 ms 31860 KB OK (n = 200000, answer = YES)
117 Correct 68 ms 32856 KB OK (n = 200000, answer = YES)