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

Why my rating for june long contest not being updated?

Why my rating for june long contest not being updated?

View Article


College Users

I want to know the users of my college that are on Codechef. How can I get to know their names and handles?

View Article


advantage of using assert in program

i want to know that some programmer use assert in their program , is there any advantage of using assert while running the program on judge where all the constraints are defined and are guaranteed that...

View Article

LOWSUM - Getting TLE! How to speed up?

I was trying to implement the solution by following the editorial.http://discuss.codechef.com/questions/29659/lowsum-editorialI am still getting a TLE. What am I missing?#include<stdio.h>...

View Article

Help on Fast input/output

can someone explain me what's fast input/output. I m sorta new to this stuff and would really appreciate some help. Thank you.

View Article


COMPILER - Editorial

PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:AD-HOC PROBLEM:Given a bracket sequence, print the length of largest prefix...

View Article

time limit in june guessing

//CODE DELETED why it always show time limit exceed i already check it is optimize

View Article

Which algo can be used for this problem. need solution to this.

You want to cut a piece of paper by a certain fixed rule to make some pieces of white or blue colored square paper with various sizes. If the size of the entire paper is N×N (N = 2^K; 1 ≤ K ≤ 7; K =...

View Article


need help with MARBLEGF, fully line-by-line commented code included

I have the link to fully commented code. It passes the sample input, but is incorrect. It's only 60 lines of code and straightforward. Each line is commented....

View Article


DP in LEBALONS, help needed, anyone?

I cross checked it with the tester's solution on some test cases.Can somebody tell me why is it a WA.What is wrong in the DP for this question.I have posted this question for quite a long time, no...

View Article

Image may be NSFW.
Clik here to view.

Algorithm for modular exponentiation

ALGORITHM 2- MODULAR EXPONENTIATIONBy @pratku123For more methods and a detailed explanation refer to the wikipedia page of Modular exponentiation.We posted this on our facebook page and thought that we...

View Article

Maxim and Progressions

Needed one clarification regarding second test case. 1 2 1 is the given sequence. As per the question, 1 2 1 and 2 1 both are sub-sequence. As per the condition, in any sub-sequence a[i] < a[i+1]....

View Article

Can anyone explain me LEBLOCKS question

I am facing difficulty understanding the little elephant and block question. Can anyone explain it in simple sense.

View Article


Lucky Long: problem with raw_input()

I am getting a WA if I use raw_input(). If I use raw_input.strip(),answer gets submitted!! Why are we using raw_input.strip() here? plzz help! Thanks in advance! link to question...

View Article

Chinese and eastern european domination????

How come chinese and eastern european people dominate programming competitions like codechef while we hardly ever manage top 3. Some of the times not only professionals even their high school students...

View Article


link for live rankings

just little left for june long challenge, and then follows short one. live rankings for June 2014 long challenge: http://www.codechef.com/rankings/june14live rankings for June 2014 short challenge:...

View Article

which one is faster, scanf or getchar

Please explain this , I am using scanf in my C++ code for chef and functions and I am getting TLE. Help

View Article


HOLES Getting WA

include <stdio.h>int main() { int t; scanf("%d", &t); fseek(stdin, 0, SEEK_END); while (t--) { char a[101]; int i, numberOfHoles = 0; fgets(a, 100, stdin); for(i = 0; a[i] != '\0'; i++) {...

View Article

A SINGLE LINE LOGIC ALSO GIVING TLE FOR DCE05 question !!!!

the question link is http://www.codechef.com/problems/DCE05 my solution is below...!!! package mat; import java.lang.Math; import java.util.Scanner; public class Mat { public static void main(String[]...

View Article

execution time

Will i please be notified about the execution time of pow function in math.h used in C language. Does it takes longer than writing a code using loops myself??

View Article
Browsing all 40121 articles
Browse latest View live


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