By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,495 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,495 IT Pros & Developers. It's quick & easy.

I have a code in python. I want this to be converted to C.its urgent..

P: 1
o=int(input())
p=input().split()
q=input().split()
r=[int(x) for x in p]
f=[int(x) for x in q]
r.sort()
f.sort()
i=0
for j in range(o):
i=i+abs(r[j]-f[j])
print(i%1000000007)
Jan 22 '19 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.