What kind of comment should I post on the problem page?

Is there any comment posting guideline? I am new on this website. I have so many doubts while I participate in a contest. Can I ask them on the problem page by posting a comment? Will I be banned for asking something which is not relevant?

25 Likes

Comments are a mechanism for the users to interact with the problem setting panel, the admins and other users to get their queries answered. Hence, it is important that the users are responsible while posting a comment so that those who answer the comments have to go through only meaningful and less number of comments. The likelihood of getting a reply to your comment also gets increased in such a scenario.

We have observed that a huge number of comments are being posted during our contests which are not relevant and could be avoided. It makes the life of our problem setters very difficult as they have to scan through all such comments to reply to only the ones which are relevant.

Hence we have come up with a comment posting guidelines which we expect each one of us to adhere to.

During a live/running contest:

  • You cannot share your logic, answer, input, code, hint, algorithm, etc.

  • You cannot share the run-time or space complexity of your solution.

  • You cannot ask hints to solve the problem.

  • You cannot ask more test cases.

  • You cannot ask for help for finding bugs in your code.

  • Do not comment if it is absolutely not necessary to do so.

  • Read all the previously posted comments for a problem before posting your comment to avoid asking the same query twice.

  • Read our FAQ thoroughly before asking a question. If the FAQ does not have your question answered, only then post your query.

  • You can post questions regarding any clarification in the problem statement. However, please read the problem statements multiple times before posting your query. We take great care in trying to come up with unambiguous problem statements and most of the times it has been found the query asked is answered by a careful reading of the problem statement.

  • Your comment should be relevant to the page on which you are posting it.

  • Any question or query that is not relevant to the problem or the page that you are on, you should not post it as a comment there. All such questions should be asked in this forum.

The following rules must be adhered to for posting any comments across the website. Users not doing so may face permanent suspension from the website.

  • Posting of any filthy, inappropriate or abusive language is strictly prohibited.

  • Any advertisement or marketing content is not allowed.

  • Spamming the comments section will not be accepted under any circumstances.

50 Likes

whr wrong answer?

3 Likes

How do I format a comment to include line breaks, for example? HTML is not allowed.

8 Likes

why wrong answer is giving even if i am getting expected outputs on every test cases

3 Likes

Queries regarding input-Output constraints or regarding unclear problem statements can be asked and are almost always answered by the admin.

1 Like

#include<stdio.h>

int function(int n)
{
if(n>1)
return (function(n-1)+factor(n-1));
if(n==1)
return 0;
}

int factor(int n)
{
int p=1,i,power=0;
for(i=2;ii<=n;i++)
{
power=0;
while(n%i==0)
{
n=n/i;
++power;
}
p=p
(power+1);
}
if(n>1)
{
p=p*2;
}
return p;
}

int main()
{
int t,n,i,a=0;
scanf("%d",&t);
while(t–)
{
scanf("%d",&n);
for(i=1;i<n;i++)
a=a+function(i*(n-i));
printf("%d
",a);
a=0;
}

return 0;
}

1 Like

Please notify if my comment/query is blocked from the contest page. At least I will not wait for the answer and post a more refined comment.

Or maybe the setter can post a comment with a modified form of query which is “acceptable”, along with the answer.

3 Likes

Please correct russian statements. On main page its written that objects indexes starts from 1, but russian statement claims that from 0.

http://www.codechef.com/viewsolution/4451849

Can we ask about the explanation of given test cases?

import java.util.Scanner;
class Puzzle
{
static int n,a[];
static int sum=0,statue,count,count1=0;
public static void main(String s[])
{
try
{
for(int j=0;j<50;j++)
{
Scanner sc=new Scanner(System.in);
n=sc.nextInt();
if(n==0)
{
break;
}
count=0;
sum = 0;
count1++;
a=new int[n];
for(int i=0;i<n;i++)
{
a* = sc.nextInt();
sum = sum+a*;
}
statue = sum/n;
for(int i=0; i<n;i++)
{
if(a*<=statue)
{
continue;
}
else
{
count=count + (a*-statue);
}
}
System.out.println(“Set #”+count1);
System.out.println(“The minimum number of moves is “+count+”.”);
}
}
catch(Exception e)
{
}
}
}

sir i not understood this point can please explain it

At the beginning Chef has segment [0, X] and no points on it. On each step Chef chooses the subsegment of maximal length possible such as it contains no points on it.

Is there something in specific that needs to be done to get my queries answered?
I have posted queries adhering to the above mentioned guidelines and still never get a response, can you explain a reason why this could be the case. Thanks in advance…!

#include <stdio.h>
#include <math.h>

int main()
{
int t;
scanf("%d", &t);

while(t--) 
{
	int a=0,b=0,c=0;
	scanf("%d %d",&a,&b);
	c=pow(a,b);
	printf("%d

",c);
}
return 0;
WHAT ERROE IN IT

}

i don’t get it

#include<stdio.h>
#include<math.h>
int main()
{
int a[10];
int i,t,p;
scanf("%d",&t);
if(t<=0)
{
p=0;
printf("%d
“,p);
}
else{
while(t>0)
{
int min1,min2;
p=0;
for(i=0;i<=9;i++)
{
scanf(”%d",(a+i));
}
min1=a[1];
min2=1;
for(i=1;i<=9;i++)
{
if(min1>a*)
{
min2=i;
min1=a*;
}
}
if(min1>a[0])
{
p=min2;
p=ppow(10,a[0]+1);
}
else
{
for(i=0;i<=min1;i++)
p=p+min2
pow(10,i);
}
printf("%d
",p);
t–;
}
}
return 0;
}
check y this not true

I am new on this website. I have so many doubts while I participate in a contest. Can I ask them on the problem page by posting a comment? Will I be banned for asking something which is not relevant?

I am new on this website. I have so many doubts while I participate in a contest. Can I ask them on the problem page by posting a comment? Will I be banned for asking something which is not relevant?

Adobe Systems is hiring Software Engineers CTC:- 8-30 Lac, Exp:- 0-8 Years, Bangalore

Apply Here:- http://jobsiit.com/jobs/view/1876/Adobe-Systems/Software-Engineer

Check out the latest Coding jobs :- http://jobsiit.com/jobs/listing/Computer%20Science