Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 39796 articles
Browse latest View live

Where can I see how much time my code needs?

I have written a code and I got TLE. Where can I see how much time my code needs?

View Article


AMSEQT - Editorial

Problem Link:PracticeContestDifficulty:EasyPre-requisites:Binary Indexed Tree, Ad-hocProblem:You are given a sequence of N positive integers in the range 0 to 2M-1, say A[0], A[1], ..., A[N-1]. In how...

View Article


AMSGAME1 - Editorial

Problem Link:PracticeContestDifficulty:CAKEWALKPre-requisites:gcdProblem:You are given a set of N positive numbers A[0], A[1], ..., A[N-1]. At each step you pick two unequal numbers and replace the...

View Article

AUTO USER ID DELETION/DEACTIVATION

I've always had this doubt , does codechef automatically delete/deactivate users under long time of inactivity ?? as in yahoomail/gmail etc. if so how long ??

View Article

AMROOK - Editorial

Problem Link:PracticeContestDifficulty:MediumPre-requisites:CombinatoricsProblem:You are given a RxC chess board, on which you have to place N rooks. The board is numbered 1 to R from top to bottom and...

View Article


Run Time Error using Sieve

hey...i am getting Run time error.....plzz...help...though using Sieve my code is include<iostream>include<math.h>using namespace std; int main() { int a,b,c,i,j,k,d,u; float...

View Article

Why is it giving WA for NAME1 , when using string class, and AC with char array

the problem statement here... http://www.codechef.com/MAY13/problems/NAME1and my code using string class .. http://www.codechef.com/viewsolution/2134447 (WA)my code using char array .....

View Article

FIRESC Problem WA. Any help will be appreciated.

Please help . Getting Wrong answers for even test case!!! link to my code -> http://ideone.com/lU40Sl

View Article


Bluetooth Programming in Java

I want to code a Java program which will interact with my PC's bluetooth adapter and subsequently and input which I give through my program will be sent to another remote bluetooth device through my...

View Article


CHEFGAME - Editorial

PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:MEDIUMPREREQUISITES:Prim's algorithmPROBLEM:The best described in the problem statement.QUICK...

View Article

How to increase our Karma

as the faq says if we wants to unlike and the rest we need some points known as karama. how can we increase our karama in our account???

View Article

How to delete my CodeChef user name / account

I would like to delete my CodeChef user name/ account, please let me about the same ?

View Article

AMSGAME2 - Editorial

Problem Link:PracticeContestDifficulty:SIMPLEPre-requisites:Dynamic ProgrammingProblem:Given a sequences of N positive numbers A[0], A[1], ..., A[N-1], find how many subsequences of the integers are...

View Article


MSTICK- WA

implenting basic segment tree..cross checked many times..still getting wrong answer..pls help where am i doing wrong..? here is my code's link-.http://www.codechef.com/viewsolution/2172202

View Article

AMXOR - Editorial

Problem Link:PracticeContestDifficulty:MediumPre-requisites:Dynamic ProgrammingProblem:Given a sequence of positive integers a[1], a[2], a[3], ..., a[N], find how many sequences of nonnegative integers...

View Article


What are badges?

Can you explain me about badges? How do I earn more badges? How are badges different from karma points?

View Article

COUNTREL - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONPart 1 closed form: (3^n+1)/2 - 2^nPart 2 closed form: 2*4^(n-1) - 3^n + 2^(n-1) + 2^n - (3^n+1)/2 The answer (for both 1 and 2) is in the form of a...

View Article


When should I comment & when shouldn’t I ?

I am always confused on what are the best situations where I should comment or rather post an answer for it. Admin, Can you please explain?

View Article

Do I get karma for commenting?

Will commenting on a post give me any karma? If no, then why?

View Article

Can other users edit my posts?

I see my posts being edited by some users. I have doubt if other users can edit my posts. Is it possible?

View Article
Browsing all 39796 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>