Hall Of Fames Of JU Programming Society

Dev Skill archived problems can be discussed here.

Hall Of Fames Of JU Programming Society

by MarufAhmed » Sun Dec 18, 2016 11:26 pm

PRB link : http://www.devskill.com/CodingProblems/ViewProblem/46

Why i am getting WA?

My code:

#include<stdio.h>
#include<string.h>
long long c[10000005];
main()
{
long long n,t,i,j,a,b;
scanf("%lld",&t);
for(i=0; i<t; i++)
{

scanf("%lld %lld",&a,&b);
c[i]= (a+b)/2;
}
for(i=0; i<t; i++)
{
printf("%lld\n",c[i]);

}
}
 
Posts: 3
Joined: Sun Dec 18, 2016 11:21 pm

Re: Hall Of Fames Of JU Programming Society

by mahrahat » Wed Dec 21, 2016 3:55 am

You may check this.
Lets
• search through previous topics before posting a new topic
• include link to problem (or at least problem number)
• write code snippets inside [code] [ /code] tags
 
Posts: 48
Joined: Thu Nov 24, 2016 9:11 pm
Location: Bangladesh


Who is online
Users browsing this forum: No registered users and 1 guest
cron