jakaria_hossain

codechef - football

Aug 3rd, 2019
128
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int t;
  6. cin>>t;
  7. while(t--)
  8. {
  9. int n,mx=0;
  10. cin>>n;
  11. int ara[n+1],f[n+1];
  12. for(int i=0;i<n;i++)
  13. {
  14. cin>>ara[i];
  15. ara[i]*=20;
  16. }
  17. for(int i=0;i<n;i++)
  18. {
  19. cin>>f[i];
  20. f[i]*=10;
  21. ara[i]-=f[i];
  22. mx=max(mx,ara[i]);
  23. }
  24. cout<<mx<<endl;
  25. }
  26. }
RAW Paste Data