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

LEBOMBS WA

Problem link: http://www.codechef.com/problems/LEBOMBS/My solution: http://www.codechef.com/viewsolution/3800311I found the question quite straight forward and my logic seems quite alright to me. Yet I...

View Article


Graph theory

Can anyone provide me with Graph theory material however except topcoder's i have read it and want some more. Thanx in advance.

View Article


How to take input of an array in 1 line in C++?

How to take input of an array in one line? first line will be the size of the array. cin>>sizeofarray.then I want to take input of a[0]- a[n-1] on the same line like this: a[0] a[1] a[2]---- so...

View Article

NUMGAME2 - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONFor this particular combinatorial game theory problem the the values of N for which the first player looses are 1,5,9,13,17,21,25 etc.SETTER'S...

View Article

Why do I get a Time Limit Exceeded?

Why my program keeps getting Time Limit Exceeded? What are some of the reasons of getting TLE?

View Article


IARCS judge showing wrong answer?

List of books is a problem I found in IARCS online problem archive. But their judge is showing wrong answer to my solution. I don't know what went wrong? Is my algorithm is totally a fail? or some...

View Article

weird behaviour of scanf

#include<stdio.h> #include<conio.h> void array(int * ,int ); int main() { int n,a[20]; printf("Enter the size of the array"); scanf("%d",&n); array(&a[0],n); } void array(int *j,int...

View Article

unexpected runtime error

can someone please tell me why this code is giving runtime error sigsegv http://www.codechef.com/viewsolution/3801341 it's an atempt to solve the problem knight fork in lunchtime april 14

View Article


candle problem

whats wrong with code,can someone give me a testcase for which it does not work#include<stdio.h> #include<stdlib.h> int t,p,c[10],i,flag=0; int cnt=0,num; int main() { scanf("%d",&t);...

View Article


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
Browsing all 39796 articles
Browse latest View live


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