Getting started here, questions about strategy, etiquitte, etc

You have written your question very nicely :slight_smile: So I don’t think you would have any etiquette problem. Just try your best to solve before asking. And you can not ask for help about a live problem.

i know programming but practice is very less

#include<stdio.h>
void main()
{
int n,s,out;
scanf("%d",&n)
for(i=0;i<n;i++)
{
s=&ar[i];
out=ar[i];
}

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf(“enter the value “);
scanf(”%d%d”,&a,&b);
c=a+b;
printf("%d",c);
getch();
}

#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, sum;
printf(“enter the value of a and b”); scanf("%d%d",&a,&b);
sum=a+b;
printf(“sum=%d”,sum);
getch();
}

#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, sum;
printf(“enter the value of a and b”); scanf("%d%d",&a,&b);
sum=a+b;
printf(“sum=%d”,sum);
getch();
}

enter the value of a and b
10
20
sum=30

enter the value of a and b
10
20
sum=30

Hello Everyone, I am new to Codechef but I want to share something with you.
Everything in life has some reason,some goal, some intention behind doing it.
Before you start, remember why are you doing it…
Coding is because you want to interact with the machine so you need to learn machine’s language as you are more intelligent than machine and machine cannot learn your language.
Try writing the expected input and expected output on a piece of paper before you code as logic is equally important as learning the language.
Best of luck to all of you

1 Like

The meaning of if (I==1) is that in this,i is any value which is been calculated should be equal to 1.and the meaning of if(I&1) is that the answer must include both the values in between I and 1. Moreover the first one is used to compare equality while that of the other one.

  1. try for optimised solution

This is a right answer for two value pulse

include<stdio.h>
include<conio.h>
void main() { int a, b, sum; printf(“enter the value of a and b”); scanf("%d%d",&a,&b); sum=a+b; printf(“sum=%d”,sum); getch(); }

enter the value a and b Sum=

Excited to join this course.

hello iam new at codechef. i dont know where to start please guideme guys. how to solve question…

hello iam new at codechef. i dont know where to start please guideme guys. how to solve question…

I am new in programming, and I am a student doing graduation… I really want to be a professional programmer

include <stdio.h>
include <conio.h>

void main()
{
int a, b, sum

printf(“masukkan sebuah nilai A & B\n”);
scanf("%d %d,&a,&b");

sum=a+b;
printf(“sum=%d,sum”);

getch();
}

hello friends i am Anurag.

  1. yes it’s right question etiquette is must for every employee. TLE error so the input and output to get desired output. but TLE check the error.
  2. right strategy for problem solving to understand what is exactly problem, check the optimization for problem, i don’t using any tools like “problematic”. yes i will try get solve the problem by my self.
  3. no i have time to visit this type website.
  4. first i will try check the problem, which type of error, then i will try find the solution in code.
  5. i will try to inherit the appropriate algorithms. then i will write code for import the algorithm. and for the non-native file then using filter ,no need for copy the algorithm.
  6. before start programming, i will check observed the problem how i will solve short with fixed the solution for this problem. enormous input divide in section.