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

prog.cs(2,18): error CS8025: Parsing error Compilation failed: 1 error(s), 0...

namespace experiment { class Program { static void Main(string[] args) { int t = int.Parse(Console.ReadLine()); List<int> lines = new List<int>(); for (int i = 0; i <t; i++) {...

View Article


10261 - Ferry Loading

hi, I m solving this DP problem on uva.. can any body explain the approach. link :http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1202thanks...

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

CHRECT - Editorial

PROBLEM LINKPracticeContestDIFFICULTYCAKEWALKPREREQUISITESAd HocPROBLEMYou are given a grid of R rows and C columns. The rows are numbered from 1 to R from top to bottom. The columns are numbered from...

View Article

Warnings during compilation

Hi all.Marvellously, a large group of programmers believe in this golden rule of compilation: "Errors - Oh, No! Warnings - I Don't care!"Please! THIS IS NOT TRUE. WARNINGS ARE INDICATORS OF LURKING...

View Article


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

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


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


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

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

InterView:Fruitful Websites

Hi folks,Please suggest me some good websites to prepare for job/internship interviews.I mean to say that where I can find good and correct stuff on basic trees,data structures and algorithms . It will...

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

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


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

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


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

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


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