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

Python NZEC error

l=list(input().split()) for i in range(len(l)): l[i]=int(l[i]) b=int(input()) l1=list(input().split()) for i in range(len(l1)): l1[i]=int(l1[i]) c=int(input()) l2=list(input().split()) for i in...

View Article


what am I doing wrong here? need help!

Code chef is not accepting this answer. but in my pc I am getting the correct answer. please help.https://www.codechef.com/viewsolution/22607343

View Article


What's wrong with this code for INOI 2015 P2

Can somebody please point the error in this code ? Thanks !I have used the recursion q(n) = 2^n - \sum_{ m | n, m < n} q(m), where q is the number of aperiodic strings of length...

View Article

Maximising distance

Question-https://www.codechef.com/COSE2019/problems/ROBOT02Issue- Unable to figure out how what approach to use? I used the brute force method but it's giving the expected tle. Analyzed the only 2...

View Article

Water Filling in Containers - Binary search

What should be the approach for this problem? I have seen other coders' solution, but I am not able to understand.How binary search can be applied? Please help me. Problem link:...

View Article


Help! Water Filling in Containers - Binary search

What should be the approach for this problem? I have seen other coders' solution, but I am not able to understand.How binary search can be applied? Please help me. Problem link:...

View Article

Brief Editorials ICO Preparatory Mega Contest ICOP1904

As @mgch quoted here, who am I to contradict him. So, I am presenting you the brief editorials for ICO Preparatory Mega-Contest. Hoping you all guys had fun in this contest. Here we go!SHIVIGODFor...

View Article

Wrong answer for IALG1

Could anyone explain whats wrong with my solution for problem IALG1? I have tested for a lot of test cases and my solution appears to be similar to the accepted ones. Link to problem:...

View Article


Invitation to CodeNation Hiring Contest 2019

Hi Everyone,CodeNation, Bengaluru is conducting an online hiring test on 26th January, 2019 at 5:00 PM IST.Register here: https://goo.gl/forms/7aopASH1dchGbjHE3 for the Online Test Shortlisted...

View Article


Help | Query to find longest subarray containing all 1's

You are given a string of size n consisting of 0s and/or 1s. You have to perform total k queries and there are two types of queries possible:"1" (without quotes): Print length of the longest sub-array...

View Article

How I solved GCDMOD

It took me days to come up with a solution to GCDMOD, so I wish to share it with people with the complete approach on how I did it.Step 1: Choosing the algorithm to calculate gcd of two numbersThis was...

View Article

why BITOBYT is giving wrong answer.

I could not get what is the error in the following implementation of BITOBYTlinkCan anyone please suggest what went wrong.Thanks

View Article

ADAMTR - Editorial

PROBLEM LINK:Div1Div2PracticeSetter-Alei ReyesTester-Pranjal JainEditorialist-Abhishek PandeyDIFFICULTY:Easy-MediumPRE-REQUISITES:2-Sat, DFS, Graph ColoringPROBLEM:Given $2$ matrices $A$ and $B$. In an...

View Article


PRETNUM - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASYPREREQUISITES:Prime factorization, SievePROBLEM:Find the number of integers in the given range which have prime number of divisors.QUICK EXPLANATION:Although...

View Article

ALORA2 - Editorial(ALOHOMORA)

Problem Link - LinkAuthor - Ritesh GuptaTester - Shubham GuptaEditorialist - Shubham GuptaPre-requisite - SortingProblem - You are given n numbers ,you have to find the lexicographically greatest...

View Article


c++14 ide installation

can any one help me install c++14 ide and compiler for windows7 ?

View Article

Image may be NSFW.
Clik here to view.

Why is it partially correct after 100 points?

https://www.codechef.com/submit/complete/19268165This is the submission link, which shows 100/0 and partially correct. Please fix this bug.

View Article


Why aren't practice links activated immediately after the contest is over?

I badly want to test my solution to a problem in ALOHOMORA. I cannot imagine any reason why practice links cannot be activated immediately after the contest is over.

View Article

Someone please check my solution for FANCY QUOTE question of January Long

The question is marked as CAKEWALK and it indeed is easy, and i wrote a code which checks all the cases, that is not in the beginning, in the end, in middle and not as the only word. Still the judge...

View Article

Invitation to the Turing Cup 2019

Hello Coders!I, on behalf of the Codechef Campus Chapter at SIES Graduate School of Technology invite you all to the 2nd iteration of the Turing Cup!The Turing Cup is named in honour of Alan Turing -...

View Article
Browsing all 39796 articles
Browse latest View live


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