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

May long challenge

Would this month long challenge start from next Friday, as there still no link for the contest.

View Article


Paying Up : Getting WA

// For identifying Whether a subset exists or not#include <iostream> #include <algorithm> #include <vector> #include <cstdio> using namespace std; int...

View Article


WA IN HOMEDEL

Can someone please point out the error in this code http://www.codechef.com/problems/HOMDEL/Here is my solution: http://ideone.com/KNrzmrI am basically using Dijkstra's algorithm precomputing the...

View Article

how to use setprecision (in iomanip header file)?

float y= 0.5; cout<<y; //will give output 0.5 //i want output as 0.50 //what to do?

View Article

in binary tree...... why I get wrong answer

#include<stdio.h> int main() { int c; long int n,a; long int i,j; scanf("%ld",&n); for(a=1;a<=n;a++) { scanf("%ld %ld",&i,&j); c=0; while(1) { if(i>1&&i>j) {...

View Article


Image may be NSFW.
Clik here to view.

BINTREE - Editorial

PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:Binary TreeLowest Common AncestorPROBLEM:Given infinite full...

View Article

Improvement

Actually its quite absurd that I am suggesting a improvement because I am nothing in front these young minds however I wanted ask why does code chef not use the problem checking style as used by google...

View Article

NZEC error

Bank_Charges = 0.50 while(True): Entered_Amount = int(input()) Initial_Balance = float(input()) if Entered_Amount % 5 == 0 and not Entered_Amount>=Initial_Balance: print(Initial_Balance -...

View Article


How is accept rate decided?

Some places i saw people got upvote so naturally accept rate increased but some places their is neither upvote nor downvote but their is some percentage(%) of accept rate how is it calculated?

View Article


Short contest Gambit 2014

I am not able to find the link for registration of team in external contest Gambit 2014 http://www.codechef.com/CDSN2014/

View Article

Image may be NSFW.
Clik here to view.

SNAPE - Editorial

Problem Link:contest, practiceDifficulty: CakewalkPre-requisites: Geometry, ImplementationProblem:We are given two numbers A and B. Our task is to determine the minimal and the maximal possible value...

View Article

Compiler judged WA

Code deleted!!

View Article

hackerearth may easy challenge

http://www.hackerearth.com/may-easy-challenge-14/algorithm/little-deepak-and-game-of-thrones/ i dont know how to solve this problem,the only way i could think of is marking all the points on or under...

View Article


function overloading program

give me some real life based examples of function overloading

View Article

iostream.h: No such file or directory compilation error

in the may contest question 2 my program is showing this compilation error """""prog.cpp:1:22: fatal error: iostream.h: No such file or directory #include "iostream.h""""""""""""""anyone can help??also...

View Article


Stone May Long

My code is running perfect on my computer could any one suggest any common mistake i may be doing

View Article

how to take big input in C

How to take input 10^18 in C

View Article


OJUMPS - WA

HI I AM NEW TO CODE CHEF . AND I TRIED TO UPLOAD MY PROGRAM IN JAVA ...ACTUALLY I WAS USING JDK 8 (LATEST VERSION)BUT NOW IT SAYS WRONG ANSWER , WHAT COULD BE THE REASON ?? PROGRAM IS WORKING FINE ON...

View Article

test cases for Chef-jumping

I am currently working on the May contest Chef-jumping problem. I tried all the possible cases upto 7 digits input and GETTING THE DESIRED CORRECT OUTPUT on my terminal. But the codechef compiler...

View Article

May long challenge

http://www.codechef.com/MAY14/problems/COMPILERJust wanted a clarification.I wanted to know that what will be the answer for this test case <><> . I want to know what does a prefix here means

View Article
Browsing all 40121 articles
Browse latest View live


Latest Images