Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int R,S,T,input;
- cin >> R >> S >> T ;
- cin >> input;
- int a[input];
- for(int i=0; i<input; i++){
- cin >> a[i] ;
- a[i]-= R;
- for(int j=1; j<=a[i]; j++){
- if(a[i]%5+4 < 5){
- cout << "yes" << endl;
- }
- else if(a[i]%5+4 > 5){
- cout << "no" << endl;
- }
- else if(R >= 3){
- cout << "no" << endl;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement