Search found 1 match

by ahmed essam elkashef
Sun Nov 18, 2012 9:01 am
Forum: Volume 118 (11800-11899)
Topic: 11805 - Bafana Bafana
Replies: 23
Views: 12329

Re: 11805 - Bafana Bafana

can anybody tell me why i got wa ?? my code :
#include <iostream>
using namespace std ;
int main ()

{ int t ;
cin>>t;
for(int i=1;i<=t;i++)
{

int n, k , p ;
cin>>n>>k>>p;;
int d =k+p ;
int f=p-n ;
int l = f-n;
int result=l-n +k;
if ( n==p)
cout<<"Case " << i<<": "<< k<<endl ;
else if (n ...

Go to advanced search