Advertisement
hsiuyee

K. Hobz is a good guy

Apr 27th, 2023
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #pragma GCC optimize(2)
  2. #pragma GCC optimize(3)
  3. #include<bits/stdc++.h>
  4. using namespace std;
  5. #define ll long long
  6. #define int long long
  7. #define fastio ios::sync_with_stdio(false),cin.tie(0);
  8. #define pll pair<ll,ll>
  9. #define F first
  10. #define S second
  11. #define eb emplace_back
  12. #define mkp make_pair
  13.  
  14. const ll MAXN=1e6+5;
  15. const ll INF=1e18;
  16. const ll MOD=998244353;
  17.  
  18. ll cnt1,cnt2,cnt0;
  19. string s;
  20.  
  21. void init(){
  22.     cin>>s;
  23.     if(s=="1") cout<<"NO\n";
  24.     else cout<<"YES\n";
  25. }
  26.  
  27. signed main(){
  28.     fastio 
  29.     freopen("hobz.in","r",stdin);
  30.     ll T;
  31.     cin>>T;
  32.     while(T--){
  33.         init();
  34.     }
  35.     return 0;
  36. }
Tags: JCPC 2022
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement