Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. #define LL long long
  6. #define ULL long long unsigned
  7. #define LD long double
  8. #define FOR(i,n) for(int i=0;i<n;i++)
  9. #define FLR(i,n) for(LL i=0;i<n;i++)
  10. #define RFOR(i,n) for(int i=n-1;i>=0;i--)
  11. #define RFLR(i,n) for(LL i=n-1;i>=0;i--)
  12. #define rep(i,a,b) for(int i=a;i<=b;i++)
  13. #define repl(i,a,b) for(LL i=a;i<=b;i++)
  14. #define fast ios_base::sync_with_stdio(0);cin.tie(0);
  15. #define all(a) a.begin(),a.end()
  16. #define ABS(x) ((x)<0?-(x):(x))
  17. #define NL "\n"
  18. #define pb push_back
  19. #define pi acos(-1.0)
  20. #define sq(a) (a)*(a)
  21. #define prec(n) fixed << setprecision(n)
  22. int main()
  23. {
  24. fast;
  25.  
  26. int i,j,k,ans,kount=0,flag,ara[10],bull,cow;
  27. string s;
  28. while(bull!=4){
  29. cout<<"0000"<<endl;
  30. cin>>bull>>cow;
  31. ara[0]=bull;
  32. cout<<"1111"<<endl;
  33. cin>>bull>>cow;
  34. ara[1]=bull;
  35. cout<<"2222"<<endl;
  36. cin>>bull>>cow;
  37. ara[2]=bull;
  38. cout<<"3333"<<endl;
  39. cin>>bull>>cow;
  40. ara[3]=bull;
  41. cout<<"4444"<<endl;
  42. cin>>bull>>cow;
  43. ara[4]=bull;
  44. cout<<"5555"<<endl;
  45. cin>>bull>>cow;
  46. ara[5]=bull;
  47. cout<<"6666"<<endl;
  48. cin>>bull>>cow;
  49. ara[6]=bull;
  50. cout<<"7777"<<endl;
  51. cin>>bull>>cow;
  52. ara[7]=bull;
  53. cout<<"8888"<<endl;
  54. cin>>bull>>cow;
  55. ara[8]=bull;
  56. cout<<"9999"<<endl;
  57. cin>>bull>>cow;
  58. ara[9]=bull;
  59.  
  60.  
  61.  
  62. }
  63. return 0;
  64.  
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement