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

NZEC in ABCPATH in SPOJ. PLEASE HELP.

I'm getting an NZEC for this particular problem http://www.spoj.com/problems/ABCPATH/My code works correctly for the test case stated in the problem though. Here is my work:...

View Article


KPRIME - Editorial

PROBLEM LINKPracticeContestDIFFICULTYSIMPLEPREREQUISITESSieve of EratosthenesPROBLEMA number is called a K-prime if it has K distinct prime factors.Find the number of K-prime numbers between some given...

View Article


BEAUTIFUL STRINGS WA help:)

http://www.codechef.com/problems/WICQ8 question link and here is my code #include<iostream> #include<string> #include<cstring> #include<cstdio> #include<cstdlib> #include...

View Article

What kind of comment should I post on the problem page?

Is there any comment posting guideline? I am new on this website. I have so many doubts while I participate in a contest. Can I ask them on the problem page by posting a comment? Will I be banned for...

View Article

Mistake in the rating.

Mistake in the rating !!!!! in the graph it is showing 1403 but in the list it is 886.My rating after june 2013 was 1049 in july i did 4 solution with a lot of commitment and dedication so please admin...

View Article


SEASOR - Editorial

PROBLEM LINKPracticeContestDIFFICULTYCHALLENGEPREREQUISITESAd-HocPROBLEMYou are given a sequence of N numbers. You have to sort them in increasing order. You have only one operation available to you,...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Graphs: Definitions, Traversal, Depth-First Search

Hello @all,As I have mentioned on several posts here on forums, I am only now starting to learn graphs in a more educated, methodical and serious way, so, after I have studied DFS for few days and due...

View Article

Solution copied from ideone

After the contest I was looking at some solutions of the challenge question in this july contest SEASOR. When I looked at one solution that had the same score as mine, I was shocked to see that it was...

View Article


Count All Palindromic Substrings Problem

I would like to clarify about somethings about Counting all palindromic substrings in Short Contest. I know that we have to calculate the number of palindromic substrings centered at each letter. Here...

View Article


C# : Use in codechef ?

Can C#(C sharp) will be use in doing programming ques and challenges,,?? and if yes which compilers?? pls reply.

View Article

What does CodeChef do to prevent cheating?

There is rampant cheating happening in long contests. Yet CodeChef does not seem to be strict in its ways to deal with those who cheat. There has been a big delay in rating update for long challenges,...

View Article

Paying Up : Practice question Wrong Answer..(Help please)

Hi I have the following python code snippet to solve the Paying Up problem . The tests pass as expected on my computer based on the sample input provided but when I upload the same I get a WA .Please...

View Article

Suffix Trees

Hello guys, is there a tutorial for implementation and applications of suffix tree data-structure ?? or some paper or any link that helps you understand ?? I couldn't find much of it !, And also are...

View Article


TAAPLUSB - Editorial

Problem Link:PracticeContestDifficulty:EasyPre-requisites:Linearity of Expectation, basic probabilityProblem:Find the expected number of carries when adding two numbers, each at most N digits...

View Article

TACHEMIS - Editorial

Problem Link:PracticeContestDifficulty:MediumPre-requisites:Manacher’s AlgorithmProblem:Given a string in "compressed notation"(see problem), find the number of substrings that are...

View Article


Image may be NSFW.
Clik here to view.

TAACUTE - Editorial

Problem Link:PracticeContestDifficulty:Easy-MediumPre-requisites:Ad HocProblem:Given N points in a plane, find the number of acute triangles formed using these points as vertices.Explanation:It is...

View Article

java editorial please

why all the editorial are in C language ..... can anyone write the editorials in java plzz?

View Article


WA-galactik

ufff....checked all the test cases but getting wrong ans plzz....guys help me out#include<cstdio> #include<iostream> #include<list> using namespace std; int dfs(int a);int...

View Article

why the hell WA for galactik,,,,checkd nearly all tst cases

include<cstdio>include<iostream>include<list>using namespace std; int dfs(int a);int mini=10005;int p=0; list<int> M[1000004]; int visited[100005]={0};int cost[100005]={0}; int...

View Article

data structure

please someone suggest me some good data structure books...so that i can implement it efficiently in the contest i want to learn more about hashing ,priorty queues and some useful data structures

View Article
Browsing all 39796 articles
Browse latest View live


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