Guest User

Untitled

a guest
May 28th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int licznik = 0;
  4. int liczba = 0;
  5. int main()
  6. {
  7. int T, N, A[10^9], B[10^9];
  8. cin>>T;
  9. //while(T--)
  10. //{
  11. cin>>N;
  12. for (int i = 0; i<N; i++)
  13. {
  14. cin>>A[i];
  15. }
  16. for (int c = 0; c<N; c++)
  17. {
  18. cin>>B[c];
  19. }
  20. if (A[licznik-1] >= B[licznik])
  21. {
  22. liczba++;
  23. }
  24. cout<<liczba;
  25. //}
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment