You are viewing a single comment's thread. Return to all comments →
#include <map> #include <set> #include <list> #include <cmath> #include <ctime> #include <deque> #include <queue> #include <stack> #include <string> #include <bitset> #include <cstdio> #include <limits> #include <vector> #include <climits> #include <cstring> #include <cstdlib> #include <fstream> #include <numeric> #include <sstream> #include <iostream> #include <algorithm> #include <unordered_map> using namespace std; int main(){ int q; cin >> q; for(int a0 = 0; a0 < q; a0++){ long n,x=0,i=0; cin >> n; while(n>=7*i) { if(((n-7*i)%4)==0) { x=1; cout<<"Yes"<<endl; break; } i++; } if(x==0) cout<<"No"<<endl; } return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Lucky Numbers
You are viewing a single comment's thread. Return to all comments →