Competitive-Coding
Competitive-Coding copied to clipboard
small doubt
trafficstars
Hi Bro, I am new to competitive programming I want to know what the difference between your code and my code is? I got WA for my code but your code gets accepted.
include
include
int greater_num(int a,int b) { int big,temp=0; if(a>=temp) big=a; else big=b; return b; }
using namespace std;
int main()
{
int n,m,g,i,temp;
vector
g=greater_num(n,m);
for(i=1;i<=g;i++)
{
if(s[i]==q[i])
cout<<i+1<<" ";
}
system("pause");
return 0;
}
Thank you.
please mail me on [email protected]