fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. #define GG ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
  5. int main () { GG;
  6. int t; cin>>t;
  7. while(t--) {
  8. int n; cin>>n;
  9.  
  10. if(n<5) cout<<"0\n";
  11. else cout<<"1\n";
  12. }return 0;}
Success #stdin #stdout 0.01s 5304KB
stdin
3
3
6
9
stdout
0
1
1