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

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 Article


Same solution submitted twice and execution time differs by 0.6 points why?

Please give explanation.

View Article


ARRANGE - 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 Article

MSTICK- 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 Article

mstick_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 Article


Prize in contests

Hi all! i'm new here so, just wanted 2 noe: What are prizes/prize money for different contests in Codechef?

View Article

getting wa chefluck

http://www.codechef.com/viewsolution/3283054 please help tried many test cases

View Article

Prizes for lunchtime

Hi, I'm new to CodeChef. I would like to know what are the prizes for Lunchtime contestsThanks in advance.

View Article


Mouse Programming in gcc

I need some references for the mouse programming in gcc(since graphics.h doesn't work in gcc). Please help.

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

Yet 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 Article

Image may be NSFW.
Clik here to view.

METEORAK - Editorial

PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:MahbubEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic ProgrammingPROBLEM:Given a N * M matrix mat with some obstacles inside,...

View Article

what 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 Article


What'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 Article

PRPALIN 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 Article


wrong answer chefluck

http://www.codechef.com/viewsolution/3283094 pls help thanks in advance

View Article

Online 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 Article


Exceeding 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 Article

What'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 Article

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


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