fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int n,m;
  6. cin>>n>>m;
  7. int profit[n],weight[n];
  8. for(int i=0;i<n;i++){
  9. cin>>profit[i];
  10. }
  11. for(int i=0;i<n;i++){
  12. cin>>weight[i];
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
Standard output is empty