468,505 Members | 1,927 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

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

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
0 878

Post your reply

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

Similar topics

12 posts views Thread by a | last post: by
29 posts views Thread by Maurice LING | last post: by
12 posts views Thread by Anon | last post: by
1 post views Thread by Reinier Beeckman | last post: by
8 posts views Thread by Ilias Lazaridis | last post: by
122 posts views Thread by Edward Diener No Spam | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.