×

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

 24 3 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? asked 25 May '12, 23:12 2★anup ♦♦ 2.4k●27●39●44 accept rate: 21% i cannot match the explanation with the problem statement....how it is? (08 Sep '14, 10:20) Can I change the alphabets after deleting to make the given string as palidrome? (07 Nov '14, 18:30)

 8 How do I format a comment to include line breaks, for example? HTML is not allowed. answered 11 May '13, 00:32 3★evandrix 165●1●4●8 accept rate: 0% 4 it's markdown syntax. You can add double spaces and a traditional line break(\n) at the end of a line and a 
will be inserted. (06 Apr '14, 11:57) svineet3★
 3 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. answered 07 Jul '14, 11:20 5★yash_15 518●1●7●16 accept rate: 2%
 1 Queries regarding input-Output constraints or regarding unclear problem statements can be asked and are almost always answered by the admin. answered 23 Jul '13, 13:41 4★re_hash 849●3●8●15 accept rate: 3%
 0 Please correct russian statements. On main page its written that objects indexes starts from 1, but russian statement claims that from 0. answered 07 Jul '14, 12:41 4★simb4 1 accept rate: 0%
 0 answered 03 Aug '14, 01:38 1 accept rate: 0%
 0 Can we ask about the explanation of given test cases? answered 05 Oct '14, 03:38 1.9k●1●12●43 accept rate: 14%
 0 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
 0 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. answered 14 Nov '14, 13:23 2★arb93 1 accept rate: 0%
 0 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...! answered 03 Jan '15, 16:24 1★bluecode 1 accept rate: 0%

# 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\n",c);
}
return 0;
WHAT ERROE IN IT


}

1
accept rate: 0%

 0 i don't get it answered 27 Jan '15, 22:48 1 accept rate: 0%

# include<math.h>

int main() { int a[10]; int i,t,p; scanf("%d",&t); if(t<=0) { p=0; printf("%d\n",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[i]) { min2=i; min1=a[i]; } } if(min1>a[0]) { p=min2; p=ppow(10,a[0]+1); } else { for(i=0;i<=min1;i++) p=p+min2pow(10,i); } printf("%d\n",p); t--; } } return 0; } check y this not true

4★grb47
1
accept rate: 0%

Please do not post a Question as an answer here. If you want to ask a question, go to Discuss -> Forums -> Ask a Question.

(14 Feb '15, 12:05) 1★
 0 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? answered 28 Feb '15, 13:32 0★jyo_123 2 accept rate: 0%
 0 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? answered 28 Feb '15, 13:32 0★jyo_123 2 accept rate: 0%
 0 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 answered 01 Mar '15, 14:05 0★jobsiit 17●3 accept rate: 0%
 0 package com.bhawna.CodeChef.easy; import java.util.Scanner; public class LuckyLong { public static void main(String args[]) { int number,mod,count=0; Scanner scan=new Scanner(System.in); System.out.println("Enter the number of test cases"); int testCases=scan.nextInt(); while(testCases>0) { count=0; System.out.println("Enter a number"); number=(scan.nextInt()); while(number>0) { mod=number%10; if((mod%7==0||mod%4==0)) { } else { count++; } number=number/10; } System.out.println(count); testCases--; } }  } answered 02 Mar '15, 00:52 1 accept rate: 0%

# include<string.h>

main(); { int n; char c[2],k[2]; int i,t; //printf("enter the no of names"); scanf("%d",&n); for(t=0;t<n;t++) { scanf("%s",&c[t]); scanf("%s",&k[t]); } strcmp (c[t],k[t]); if (strcmp(c[t],k[t])==1) { printf("%s",k[t]); } for(t=0;t<n;t++) { i=atoi(c[t]); printf(" %d",i); } return 0; }

1
accept rate: 0%

 0 I AM NOT GETTING UR QUES MATRIX IN MARCH CHALLENGE ,WHAT IS THE DIFFERENCE BETWEEN QUERY 5&7 answered 09 Mar '15, 16:23 1★nikkey 1 accept rate: 0%

It says "Wrong Answer".Code is working on my desktop compiler. Here is the code.

# include<stdio.h>

int main() { int i=0,j=0,max1=0,max2=0; scanf("%d",&i); int n[i],o[i];

while(j<i)
{
scanf("%d %d",&n[j],&o[j]);
j++;
}
j=0;
while(j<i)
{
if(max1<(n[j]-o[j]))
max1=n[j]-o[j];
if(max2<(o[j]-n[j]))
max2=o[j]-n[j];
j++;
}
if(max1>max2)
printf("1 %d",max1);
else
printf("2 %d",max2);

return 0;
}


0★abhikul
1
accept rate: 0%

 0 why i am getting wa on my problem answered 07 Jun '15, 17:47 1★nikkey 1 accept rate: 0%
 0 As I have karma = 1, I cannot comment on the problems of June challenge (I can, but it says "you comment screened out till admin's approval", and I got no answers yet), neither I can create new threads in discussions :( So, probably, someone will see my comment here and will comment on my behalf that I have strong suspicions that the problem CHPLGNS of June's Challenge has incorrect test data set #9. If you solve the problem honestly testing for each pair of the polygons, which one is contained inside another one, it will detect that in the data set #9 there is a pair of polygons not lying one inside another (my implementation of this approach correctly passes all other test cases, showing, by the way, that in the test cases ##4, 10 some of the polygons touch each other, though task's authors replied many times in the comments that it never happens). So, there is another, simpler approach to solve the problem, valid if it is guaranteed, as in the task condition, that for each pair of the polygons one of them contains another. And this approach passes the set #9, though, in no way it really checks that the test-set satisfies task conditions. answered 10 Jun '15, 01:18 21●1 accept rate: 0%
 0 s 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...! answered 01 Jul '15, 16:04 1 accept rate: 0%
 0 Is it okay to comment something funny ? Like I was reading this problem on bread and I commented saying "I feel like eating Garlic Bread after Reading this problem statement :D Heheheh" and I guess the admin dint approve it. Why ? Is it so bad to post some humor ? answered 04 Jul '15, 10:20 176●1●7 accept rate: 4%
 0 //Chef and way in JAVA import java.util.*; class Chefstreet1 { static Scanner sc=new Scanner(System.in); public static void main(String[] args) { int n=sc.nextInt();; int k=sc.nextInt(); int mat[]=new int[n];  int a=1; for (int i=0;imat[j+1]) { g=mat[j]; mat[j]=mat[j+1]; mat[j+1]=g; } } } int q=0; int min=0; for (int i=1;imin)&&(min==0)) { min=q; } else if (q
 0 As I post a comment in a live competition as well as on an old question, the comment turn up red!? answered 07 Jul '16, 16:13 1 accept rate: 0%
 0 If these are the rules, what is the need to create a comment section ? Don't clarify the doubts. Don't ask questions. etc etc. How can we develop coding skills then without getting even proper assistance ? answered 06 Nov '16, 00:28 2★sukurcf 1 accept rate: 0%

# include<stdio.h>

int main() { float x[10000],y[10000]; int T,N,i,S1,S2; scanf("%d",&T); scanf("%d\n",&N); if (N%2!=0) {for(i=0;i<N;i++) { scanf("%f",&x[i]); S1+=x[i]; scanf("%f",&y[i]); S2+=y[i];

    }
}


if (N%2==0) { for(i=0;i<N/2;i++) { scanf("%f",&x[i]); S1+=x[i]; scanf("%f",&y[i]); S2+=y[i];

    }
for(i=N/2;i<N;i++)
{
scanf("%f",&y[i]);
S2+=y[i];
scanf("%f",&x[i]);
S1+=x[i];

}

}

if (S1<S2)
printf("%d",S1);
else
printf("%d",S2);


}

Can you tell me what mistake i have made

0★karuo07
1
accept rate: 0%

# include<stdio.h>

int main() { int N,i,j,T,Tx=0,Ty=0;

scanf("%d",&T);
scanf("%d",&N);
int x[N],y[N];
for(i=0;i<N;i++)
scanf("%d",&x[i]);for(i=0;i<N;i++)scanf("%d",&y[i]);
i=0;
for(i=0;i<N-1;i=i+2)
Tx=Tx+x[i]+y[i+1];
if(i==N-1)
Tx=Tx+x[i];
j=0;
for(j=0;j<N-1;j=j+2)
Ty=Ty+y[j]+x[j+1];
if(j==N-1)
Ty=Ty+y[j];
printf("%d",(Tx>Ty?Ty:Tx));
return 0;


} whats wrong with my code for begineers first problem?

This answer is marked "community wiki".

0★karuo07
1
accept rate: 0%

 0 I am here to practice and improve my coding skills. Here, the problem statement contains a simple testcase, whereas the problem can contain complex testcases. Without knowing what went wrong how can I be able to solve the problem. At least give us two testcases instead of One, like one is complex and the other is simple. answered 17 Apr '17, 13:12 0★mpravi14 1 accept rate: 0%

# include <bits stdc++.h="">

using namespace std;

int main() { long long t; cin >> t; long long num; while(t--) { cin>>num; if(num==0) { cout<<0<<" "<<0<<endl; } if(num==1) { cout<<1<<" "<<0<<endl; } if(num==2) { cout<<1<<" "<<1<<endl; }

    if(num>=3)
{
int s;
s = num % 3;
if(s==1)
{
int a;
a = num/3;
cout<<a+1<<" "<<a*2<<endl;
}
if((s==2) && (num%2==1))
{
int b;
b = num/3;
cout<<b*2<<" "<<b*2+1<<endl;
}
if((s==2) && (num%2==0))
{
int b;
b = num/3;
cout<<b+1<<" "<<b*2+1<<endl;
}
if(num%3==0)
{
int q;
q = num/3;
cout<<q<<" "<<q*2<<endl;
}
}
}

return 0;


}

1
accept rate: 0%

# include <bits stdc++.h="">

using namespace std;

int main() { long long t; cin >> t; long long num; while(t--) { cin>>num; if(num==0) { cout<<0<<" "<<0<<endl; } if(num==1) { cout<<1<<" "<<0<<endl; } if(num==2) { cout<<1<<" "<<1<<endl; }

    if(num>=3)
{
int s;
s = num % 3;
if(s==1)
{
int a;
a = num/3;
cout<<a+1<<" "<<a*2<<endl;
}
if((s==2) && (num%2==1))
{
int b;
b = num/3;
cout<<b*2<<" "<<b*2+1<<endl;
}
if((s==2) && (num%2==0))
{
int b;
b = num/3;
cout<<b+1<<" "<<b*2+1<<endl;
}
if(num%3==0)
{
int q;
q = num/3;
cout<<q<<" "<<q*2<<endl;
}
}
}

return 0;


}

1
accept rate: 0%

 0 I am able to run and execute my code in my desktop perfectly but in this interpreter i am getting wrong answer . What's the problem in that answered 12 Aug '18, 12:42 1 accept rate: 0%
 0 package code.com; import java.util.Scanner; public class LuckyLong { public static void main(String args[]){  int number,mod,count=0; Scanner scan=new Scanner(System.in); System.out.println("Enter the number of test cases"); int testCases=scan.nextInt(); while(testCases>0) { count=0; System.out.println("Enter a number"); number=(scan.nextInt()); while(number>0) { mod=number%10; if((mod%7==0||mod%4==0)) { } else { count++; } number=number/10; } System.out.println(count); testCases--; int number1,mod1,count1=0; Scanner scn=new Scanner(System.in); System.out.println("Enter the number of test cases"); int testCases1=scn.nextInt(); while(testCases1>0) { count1=0; System.out.println("Enter a number"); number1=(scan.nextInt()); while(number1>0) { mod1=number1%10; if((mod1%7==0||mod1%4==0)) { } else { count1++; } number1=number1/10; } System.out.println(count1); testCases1--; } } }  } answered 28 Aug '18, 14:06 1 accept rate: 0%

# 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\n",a); a=0; }

return 0; }

13
accept rate: 0%

 -3 why wrong answer is giving even if i am getting expected outputs on every test cases answered 22 Jul '13, 19:17 26 accept rate: 0% This thread is wrong place to ask such question, ask it on your problem tutorial page, please. (22 Jul '13, 19:23)
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×2,738
×214
×36

question asked: 25 May '12, 23:12

question was seen: 104,427 times

last updated: 17 Oct '18, 02:21