explaination of Forbidden Sum?
can someone explain this part of the editorial of Forbidden Sum of January Long (http://discuss.codechef.com/questions/35346/frbsum-editorial) "For the static Segment Tree, we can maintain a sorted...
View ArticleSame solution submitted twice and execution time differs by 0.6 points why?
Please give explanation.
View ArticleARRANGE - runtime error
prob: http://www.codechef.com/problems/ARRANGEthe same code below works fine and outputs what is expected at http://www.compileonline.com however, it gives "runtime error" on both ideone, and codechef....
View ArticleMSTICK- WA
implenting basic segment tree..cross checked many times..still getting wrong answer..pls help where am i doing wrong..? here is my code's link-.http://www.codechef.com/viewsolution/2172202
View Articlemstick_error
#mkagenius please check my solution. I m not able to find why m getting wrong answer..My soln id is 3283645. Please help.. Anyone pls help.. My soln is :- http://ideone.com/sbcpML
View ArticlePrize in contests
Hi all! i'm new here so, just wanted 2 noe: What are prizes/prize money for different contests in Codechef?
View Articlegetting wa chefluck
http://www.codechef.com/viewsolution/3283054 please help tried many test cases
View ArticlePrizes for lunchtime
Hi, I'm new to CodeChef. I would like to know what are the prizes for Lunchtime contestsThanks in advance.
View ArticleMouse Programming in gcc
I need some references for the mouse programming in gcc(since graphics.h doesn't work in gcc). Please help.
View ArticleMSTICK - 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 ArticleYet another number game question-getting "time limit exceeded"
I submitted the following solution for the problem-Yet another number game.#include <iostream> int main() { using namespace std; int test; int num; int k; cin >> test; int *p = new...
View ArticleMETEORAK - Editorial
PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:MahbubEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic ProgrammingPROBLEM:Given a N * M matrix mat with some obstacles inside,...
View Articlewhat is compilation error in this case?
#include<iostream> #include<math.h> #include<string.h> using namespace std; int main() { int cases,hints,no; char oper; string ans=""; int noo,i=0,j=0; cin>>cases; int...
View ArticleWhat's wrong with my code????Why WA?????
The problem name is The Lead Game[easy section TLG].I've tried all possible test cases, read all comments, even seen some solutions(I shouldn't have done that) and now come to the last resort.HELP...
View ArticlePRPALIN wrong solution got accepted
Look at these solutions. link1link2link3All these gives an answer 1 for input 1 which should never happen(because 1 is not a prime number). But they are given AC. This is due to weak test cases.@admin...
View Articlewrong answer chefluck
http://www.codechef.com/viewsolution/3283094 pls help thanks in advance
View ArticleOnline Programming Contest by IIIT Hyderabad
Threads 2k14 presents "CodeCraft", the grand algorithmic sprint. It is an ACM-ICPC style online programming contest.Contest will be of 5 hours. There will be 10 problems of varying difficulty.Contest...
View ArticleExceeding time limit in Python
This is my solution for the enormous input test problem, and it is exceeding time limit. n, k = [int(_) for _ in raw_input().split(" ")] a = 0 for i in xrange(n): if int(raw_input())%k==0: a+=1 print a...
View ArticleWhat's wrong with my code?
The problem name is The Lead Game[easy section TLG].I've tried all possible test cases, read all comments, even seen some solutions(I shouldn't have done that) and now come to the last resort.HELP...
View ArticleTSORT- TLE.. i tried merge sort and sorting in algorithm header
I tried merge sort. and stable_sort() bt both gives TLE. plz help.links to my submission is given.
View Article