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

Why hasn't the rating been updated for july lunchtime

I gave the july lunchtime 2018 as div 2 contestant. My score was 150 but still there have not been an update of my ratings for July Lunchtime.

View Article


Incorrect Answer - first time submission

Hi, This is my first submission so I guess there's a learning curve for submitting...I'm not sure what the criteria are, but below was written "locally" and tested ok...

View Article


August Challenge - SPELLBOB Whats wrong in my code?

#include "iostream" #include "string.h" using namespace std; int main() { string s1, s2; int t; cin >> t; while(t--) { cin >> s1 >> s2; if(s1[0] == 'b' || s2[0] == 'b') { if(s1[1] ==...

View Article

Wrong Problem in the Contest 'Coding Hours'

In the contest COHR2018, the problem 'Chef And His Algorithm' is probably wrong.The problem asks us to compute the minimum length of a string which consists of all the permutations of the given string,...

View Article

TSECAU05 - Editorial

Problem Link:PracticeContestAuthor:tseccodecellDIFFICULTY:Easy-MediumPREREQUISITES:Traversing array, Binary SearchPROBLEM:Given $N$ values, we have to apply rearrangements by taking $3$ from a value,...

View Article


regarding augus tchallenge and its compilation

i have attempted the mgcd question in august challenge.and when i tried to submit the answer ,i have been getting it as incorrect.when i tried to verify it on other compilers the answers matched with...

View Article

BRNDG - Editorials

PROBLEM LINK:PracticeContestAuthor:rahul_ojha_07DIFFICULTY:CAKEWALKPREREQUISITES:Binary numbers,Bit ManipulationPROBLEM:Given the total number of biscuits Bruno ate, find the number of days he was...

View Article

CHFSQN - Editorial

PROBLEM LINK:PracticeContestAuthor:rahul_ojha_07DIFFICULTY: EASYPREREQUISITES: Simple MathPROBLEM: Given the Sequence a1, a2, ..., an and Defining the strength of the sequence to be |a1 - a2| + |a2 -...

View Article


unable to find an error

Please explain me the error in my c code. The problem was to find the roots of the quadratic equation after allowing the user to enter the values of a, b and c.#include <stdio.h> #include...

View Article


FICE - Editorial

Problem LinksPracticeContestAuthor: Ankur GoelTester: Ankur GoelEditorialist: Ankur GoelDifficultyMediumPrerequisitesFibonacci Series, RecursionProblemThe King wants to select N common folks as solider...

View Article

"I want to ask a question" - Ask them all here!

Please only ask a question here if you don't have sufficient karma points to post a questionHello guys,As you all are aware, many times there are genuine users who wish to ask a question, but dont have...

View Article

PLYNUM – Editorial

PROBLEM LINK:PracticeContestAuthor:Arkapravo GhoshTester:Arkapravo GhoshEditorialist:Arkapravo GhoshDIFFICULTY:EASY-MEDIUMPREREQUISITES:Graph, BFSPROBLEM:Given a number A, you have to reach another...

View Article

KNGPRB – Editorial

PROBLEM LINK:PracticeContestAuthor:Arkapravo GhoshTester:Arkapravo GhoshEditorialist:Arkapravo GhoshDIFFICULTY:MEDIUMPREREQUISITES:Graph, Dijkstra, ImplementationPROBLEM:Given a directed graph, you...

View Article


ACTNBM – Editorial

PROBLEM LINK:PracticeContestAuthor:Arkapravo GhoshTester:Aparup GhoshEditorialist:Aparup GhoshDIFFICULTY:CAKEWALKPREREQUISITES:Basic programming, conditionalsPROBLEM:Given two integers S and H you need...

View Article

RECIPE - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThe problem here is divide all numbers by some constant so that the divisions have no remainder. We produce the smallest result by dividing by a...

View Article


i m getting correct output on my laptop but showing wrong answer on codechef....

n = int(input()) leadp1 = [0] leadp2 = [0] for round in range(n): a,b = input().split(" ") if (int(a)>int(b)): leadp1.append(int(a)-int(b)) elif (int(b)>int(a)): leadp2.append(int(b)-int(a)) if...

View Article

CAPIMOVE - Editorial

PracticeContestAuthor:Maksym BevzaTester:Arjun ArulEditorialist:Misha ChorniyDifficulty:SimplePre-Requisites:noneProblem StatementYou are given tree consisting $N$ nodes. Each node $i$ has value...

View Article


TSECJ101 - Editorial

PROBLEM LINK:ContestAuthor:TSEC CodeCellDIFFICULTY:Easy-MediumPROBLEM:Find first index of array such that sum to the left side is equal to sum to the right side.QUICK EXPLANATION:Move from left to...

View Article

Where did I go wrong?

Where did I go wrong in the following submission?Can someone please explain?Thanks.This is my solution

View Article

TAJ from July LoC TLE

Can anyone tell me why my code is giving TLE. Here is the link to my solution https://www.codechef.com/viewsolution/19548230 Complexity O(Max(E+V,Q)).

View Article
Browsing all 40121 articles
Browse latest View live


Latest Images

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