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

Field Trip ,getting TLE

http://ww2.codechef.com/viewsolution/2159135 . Can any one please tell me why this solution is getting TLE. I am new to python so any help is most welcome. I have seen some solutions following the same...

View Article


editorials for QTREE and CPP?

Is there any place where I can find them or there are not ready yet.

View Article


Misbehaviours in May Challenge to be reported here

As the long May Challenge started and so has the cases of unfair means over some famous forums and what not! People have already started asking for help on various forums, for example:Here (Link...

View Article

may -13 rankings

when will the rankings be updated, usually it is updated by half hour from the time the contest ends.

View Article

SIGSEGV error on codechef?

My code for problem code ROWCOLOP or http://ww2.codechef.com/status/ROWCOLOP is:#include<stdio.h> #include<string.h> int main() { long n,q; scanf("%ld %ld",&n,&q); char op[6]; long...

View Article


what's wrong with my code for matchsticks??

can anybody tell me what's wrong with mine code ...i tried to implement range min query algo. but i can't figure out what's wrong it seems correct to me...#include<cstdio>...

View Article

Active participation poll

I was just curious to know how many people have solved how many questions at CodeChef . Since CodeChef does not give any participation rankings , I have created a poll . Participation ( number of...

View Article

FTRIP - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESSimple MathPROBLEMIn your class of S students, N students are being selected to go on a trip. Your friend circle has M students in the class,...

View Article


Simple Java Program compile errors getting

import java.io.*; class A { int c=0; int i[50]; int l; int j[50]; int n; int k; int P; public void EvenOdd() { for(n=1;n<=100;n++) { if(n%2==0) System.out.println(n); } } public void Prime() {...

View Article


witmath :

I submitted my code in python of WITMATH during the contest and got AC. When i was submitting the same using C++ it was giving TLE though i had taken all steps to prevent overflow. Please can anyone...

View Article

WITMATH - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESPrimality TestingPROBLEMGiven some N, find the i for which φ(i)/i is the largest among all 2≤i≤N.φ(i) is the Euler Totient Function.QUICK...

View Article

JUNONGF TLE/WA

could ne1 please point out why m i getting TLE for this solution: http://ideone.com/IQGYPOand a WA for this solution: http://ideone.com/TZZjpd

View Article

MSTICK - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESRange Minimum Query, Simple MathPROBLEMYou are given N matchsticks arranged in a straight line, with their rearends touching each other. You are...

View Article


SPOJ HORRIBLE help

@ALL getting WA for the SPOJ HORRIBLE after implementing RMQ and couldn't striking any corner case needed a help SPOJ_HORRIBLE my solution solution

View Article

QTREE - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYHARDPREREQUISITESGraph Theory, Segment Trees, Heavy Light DecompositionPROBLEMYou are given a connected graph on N vertices consisting of N edges.Each edge has a...

View Article


CPP - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYHARDPREREQUISITESString Parsing, Predictive Parsing of an LL(1) Grammar, Regular ExpressionsPROBLEMYou are given a string which defines what an ID should look like...

View Article

Problem with new ratings!

New ratings are not calculated as expected. Adding up gain to last score should be more while its lesser. Anybody else noticed the same?

View Article


CHALENGE - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYCHALENGEPREREQUISITESAd-Hoc, Brute ForcePROBLEMYou are given N servers, out of which a vast majority are honeypots. You have to guess the passwords at these...

View Article

TREE - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYPREREQUISITESKirchhoff's Matrix Tree Theorem, MathPROBLEMFind the number of Trees that contain k*n nodes, which are labeled from 0 to k*n-1, such thatThere is...

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


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