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

CLEANUP - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONNo real tricks here. An easy approach is to create a boolean array b[] of size n where item b[i] is true if and only if i does not appear in the...

View Article


Internet Problem Solving Contest

Well, most of us might be already knowing about this, but few wouldn't be, who are new to competitive programming, and related things... This post is basically for them :The Internet Problem Solving...

View Article


Sorry, my question isnt related to programming but willl feel delighted if...

Two of my screws fell on its own from my laptop, initially I didn't care much about it. But recently some damage happened to my laptop. Inspite of being in warranty the company is making excuses that...

View Article

how to see our results

how to see our results

View Article

WA - RRECIPE

Hi, I have been getting a WA for the solution of Recipe Reconstruction. The code can be found here http://www.codechef.com/viewsolution/3913508. Tried the basic test cases in the question and some of...

View Article


Strategy for Short contests

In most of the short contests I solve not more than 2 questions. I always keep asking myself how to perform better? I wanted to improve myself in the short contests. Can anyone suggest the best...

View Article

why we use **head_ref in this prog i am not able to understand the logic...

void push(struct node head_ref, int new_data) { / allocate node / struct node new_node = (struct node) malloc(sizeof(struct node));/* put in the data */ new_node->data = new_data; /* link the old...

View Article

SEINC - Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey NaginTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:MEDIUM-HARD PREREQUISITES:Greedy PROBLEM:You have two array of N ≤ 105 integers A1,A2...AN and...

View Article


which compiler to select???

which compiler shall i choose to upload my code ????include<iostream.h>include<conio.h>void main() {double n; cin>>n; int i; i=int(n)%6; if(i==0||i==1||i==3) cout<<"yes"; else...

View Article


Doubt regarding TLE & Wrong answer

First when I submitted a code I got wrong answer, but when I changed slightly and resubmitted then I got TLE .I am sure that this code can not go to infinite loop after changing. So what might be the...

View Article

How wrong answer is displaying?

I am getting right answer on my system but when i am compiling it online on Chef's compiler then it is giving wrong answer. Why it is so?

View Article

TLG getting wrong answer!!!

http://www.codechef.com/viewsolution/3913938above is my code for TLG problem http://www.codechef.com/problems/TLG . Plz someone tell me why answer is wrong. it becomes correct if i add score of player...

View Article

A question about the SPOJ/Codechef online judge

Hi all,I have noticed that at Codechef, Time Limit Multipliers for non-imperative languages are set to 1 by default, i.e. if we define TL to be 1 sec, then the solutions coded in Haskell/Scala/Clojure,...

View Article


where to start solving graph theory problem

Hello everyone. I need some suggestions on where to begin solving graph theory problems. I have read some books and articles and am able to program bfs, dfs, spanning tree problems etc. But when it...

View Article

Some more Homework:Algorithm

Can someone please explain algorithm to solve the problem ? Pls no hints.Just plain simple algorithm!!

View Article


CHMOD - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYPREREQUISITESSimple Math, Repeated SquaringPROBLEMYou are given a list of N integers.Each value in the list is between 1 and 100.You have to respond to T...

View Article

sumtrain : prerequisite

what are the prerequisite to solve this problem ... I mean what are the concepts should I know .. here is the link for the problem.. http://www.codechef.com/problems/SUMTRIAN

View Article


Chef and Segments (August challenge '13)

problem link : http://www.codechef.com/problems/CHMODI've done exactly the same thing as in the editorial: http://discuss.codechef.com/questions/20312/chmod-editorialstill my...

View Article

ranking and rating

y my rating is negative???

View Article

All Factors Upto 10^12..

you are give a number upto range 10^12 How to find all possible factors of it ? Ex-for 18 factors are -> 1,2,3,6,9,18

View Article
Browsing all 40121 articles
Browse latest View live