#56

by asd

Submitted 4 years 9 months 1 day ago
Tue Feb 04 19:16:12 CST 2020
Judger: ZJS
Dataset Version: v0

28764 ms / 6920 KB
Final 0
Problem: lss2.lucky
Language: GNU C++ 11


#1

28764ms / 6916KB / Time Limit Exceeded
Input
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
6<...>
Output

												
Answer

												
Checker Information

											

#1

27437ms / 6916KB / Time Limit Exceeded
Input
517392239
20359482
463864070
166057677
777837818
798177883
111505856
175976054
43671066
334639029
796349382
535237023
864800574
501826197
640267457
449696273
566875403
746423563
748768952
336279051
200247414
603023486
725641503
25297<...>
Output

												
Answer

												
Checker Information

											

#2

26155ms / 6920KB / Time Limit Exceeded
Input
517392239
20359482
463864070
166057677
777837818
798177883
111505856
175976054
43671066
334639029
796349382
535237023
864800574
501826197
640267457
449696273
566875403
746423563
748768952
336279051
200247414
603023486
725641503
25297<...>
Output

												
Answer

												
Checker Information

											
#include <bits/stdc++.h>
using namespace std;
set<int> s={1, 2, 3, 5, 6, 9, 10, 13, 17 };
int main(){
	int x;
	while(cin>>x){
		if(s.count(x)){
			cout<<"NO"<<endl;
		}else{
			cout<<"YES"<<endl;
		}
	} 
}