fork(1) download
  1.  
  2. #include <bits/stdc++.h>
  3. #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. IOS ;
  9. int x,y,h;
  10. cin >>x>>h;
  11. int r[x][x];
  12. for (int i=0;i<x;i++){
  13. for (int j=0;j<h;j++){
  14. cin >>r[i][j];
  15. }
  16. }
  17. cin >>y;
  18. for (int i=0;i<x;i++){
  19. for (int j=0;j<x;j++){
  20. if (r[i][j]==y){
  21. cout << "will not take number";
  22. return 0;
  23. }
  24. }
  25. }
  26. cout << "will take number";
  27. return 0;
  28. }
  29.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
will take number