[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4759: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
Dev Skill Forum • View topic - WHY WA Is It Prime? DCP-27

WHY WA Is It Prime? DCP-27

Dev Skill archived problems can be discussed here.

WHY WA Is It Prime? DCP-27

by joy25896 » Sat Dec 10, 2016 5:56 pm

 
Posts: 30
Joined: Wed Nov 16, 2016 3:29 pm
Location: dhaka bangladesh

Re: WHY WA Is It Prime? DCP-27

by devskill » Mon Dec 12, 2016 6:56 am

User avatar
Site Admin
 
Posts: 118
Joined: Tue Feb 02, 2016 10:24 pm

Re: WHY WA Is It Prime? DCP-27

by joy25896 » Tue Dec 13, 2016 9:59 pm

tnx vaiya many many tnxxxxxxxxxxxxxx
 
Posts: 30
Joined: Wed Nov 16, 2016 3:29 pm
Location: dhaka bangladesh

Re: WHY WA Is It Prime? DCP-27

by joy25896 » Tue Dec 13, 2016 10:00 pm

done....
 
Posts: 30
Joined: Wed Nov 16, 2016 3:29 pm
Location: dhaka bangladesh

why WA DCP-13 Banglawash

by joy25896 » Tue Dec 13, 2016 10:02 pm

#include <iostream>

using namespace std;

int main()
{
int T;
//scanf("%d",&T);
cin>>T;
while(T--)
{
int a,b,c,d,e,f,g,h;
int x,y,z,res,temp,cnt;
//scanf("%d %d %d %d %d %d %d %d",&a,&b,&c,&d,&e,&f,&g,&h);
cin>>a>>b>>c>>d>>e>>f>>g>>h;
x=(a+b+e+f);
y=(c+d+g+h);
z=(x-y);
if(z>0) cout<<"Banglawash"<<endl;
//printf("Banglawash\n");
else if(z<=0)
cout<<"Miss"<<endl;

//printf("Miss\n");

}
return 0;
}
 
Posts: 30
Joined: Wed Nov 16, 2016 3:29 pm
Location: dhaka bangladesh


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