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

Career advice

Okay I know dis is nit d place to ask dis kind of questions but I am desperate for help nd people on codechef r probably d best for this. Plz help me choose between IIEST Shibpur CSE Dual degree( B....

View Article


Sum Of Digits Of A Simple Factorial

Tell me any other shorter method for this program- include< iostream>include< conio.h>using namespace std;float f=1,n;void fact(float );void sum(float );int main(){int t,i;...

View Article


Can't understand solution on Rohith and Circles problem from July Challenge

I am struggling with this solution for Rohith and Circles problem. Particularly, I do not understand where the line yl=(.25*((1.0/r4)-(1.0/r3)))-rs; comes from. (This is the y-coordinate of leftmost...

View Article

MCHEF 1D DP Solution ?

Hi, can someone please explain MCHEF 1D DP solution, example this one.It would be really helpful. Thanks.

View Article

Division of 0 by a double not 0?

solution code: http://www.codechef.com/viewsolution/7482546 problem : SEAGM2, JULy15in the solve function,ld ans=win/r; if(win==0) ans=0; //solution fails for 10 points but passes for 90 points, after...

View Article


Getting WA for ADDMUL JULY15

this is my solution http://www.codechef.com/viewsolution/7429948

View Article

Vague observation MCHEF JULY LONG CHALLENGE

In my solution http://www.codechef.com/viewsolution/7479607 , in the nested for loop in main, if I don't use the variable val and directly write j<=L[i].size()-1, then it is not running. Why is that...

View Article

MCHEF - Weirdest problem ever!?

Take a look at these two submissions made by me:http://www.codechef.com/viewsolution/7483130Result: AC (for both tasks)http://www.codechef.com/viewsolution/7483167Result: TLE (for second task)Note that...

View Article


Time Complexity Calculation...

*** hi to ALLI have very stupid doubt related to time complexity..my doubt is here..1<=T<=P (T-No. of test Cases)1<=N<=K (N-Input size....)*suppose time complexity of solution for a given...

View Article


how to contact a guy on codechef?

I would like to contact @vijay_cipher to ask a question about his solution on Rohith and Circles problem from last july challenge. Is here anybody who knows how one can do it over codechef?anyways,...

View Article

MAXDIFFW - Editorial

PROBLEM LINK:PracticeContestAuthor:Mugurel Ionut AndreicaTester:Mugurel Ionut AndreicaEditorialist:Lalit KunduDIFFICULTY:ChallengePREREQUISITES:challenge, heuristics, graphs,...

View Article

plzz share your solution

if someone has solved recent july long challenge MCHEF question using lazy propogation , then plz share it's solution here . I am solving lazypropogation question first time, so i have to clear some...

View Article

PRIMEOB - Editorial

PROBLEM LINK:ContestPracticeAuthor:Roshan ChoudharyDIFFICULTY:EasyPREREQUISITES:Number Theory , Fermat primality testPROBLEM:Given a number find wheter it is prime or not.EXPLANATION:If we want to test...

View Article


blogs for beginner

Here I want to know useful link for study graph algorithm.please provide some link related to competitive programming advanced math ..which should be easy to understand....):Por any suggestion or...

View Article

WA- HDILEVER

Getting WA for the problem HDELIVER. Here is a link to the solution submitted by me..

View Article


Output problem in C

One of my friend gave me this code to run it on my computer. I couldn't understand the output. Here is the code:include<stdio.h>void main() { int i; int ar[]={1,2,3,4}; for(i=0;ar[i]!=NULL;i++);...

View Article

Should random number generator be used in Codechef Questions ??

Should random number generator seeded by time ( srand(time(0))) be used in codechef question?i found it in the settler's solution...

View Article


CHEFD - Editorial

Problem link:contestpracticeDifficulty :Medium Pre-requisites :Binary Indexed Tree or Sets in C++[Balanced Binary Search Trees]Problem:You are given an array of N integers. You have to make M queries....

View Article

Absurd decrease in rating

A person having higher rating than me and scoring equal(even same questions done) to me this month's long contest had increase in his ratings while i saw a decrease in mine. :( Please explain.

View Article

Structure variables initalization

Are the integer variables of structure automatically initalized to 0??

View Article
Browsing all 39796 articles
Browse latest View live


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