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

Majin Vegeta - Quick Code

I have written My Code in Java , it is working properly with exit code 0 , in my IntelliJ IDE , but while submitting here , I get an Runtime error - NZEC . import java.util.Scanner; public class Main {...

View Article


reverse a doubly linked list in a group of given size

can anyone please correct my code because it is not working and i am not able to solve.... #include<iostream> #include<cstdlib> #include<algorithm> #include<string>...

View Article


BINSHFFL - Editorial

Problem LinkPracticeContestAuthor:Noszály ÁronTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASYPrerequisitesBFS/Floyd Warshall, ObservationsProblemYou are to convert number $A$ to number $B$...

View Article

WA in MARBLES

I am getting WA in marbles. I have used the approach of (n-1)C(k-1).Here is my solution https://www.codechef.com/viewsolution/18903165

View Article

If there is + or -sign in ahead of a variable, then what does it means??

For e.g. c+

View Article


New Server

We at Blancode have take an initiative to bring all the coders from the world under one roof.A Discord community to share , discuss , learn and grow.here is link :https://discord.gg/3886guThanks to...

View Article

Problem "TLG"

What is the Problem in this Program? i will run on my desktop it's run Perfectly when i upload this same program on codechef that make error "Wrong Answer" why??include<iostream>using namespace...

View Article

Need some help in TWOFL

I have understood what I have to do in the problem. I implemented the solution for the first subtask, it went well. But for the other subtasks, I am not able to understand the DSU part. I found out the...

View Article


WA ZCO15001

Question link : https://www.codechef.com/ZCOPRAC/problems/ZCO15001 My Solution link https://ideone.com/nrvUXHUnable to find the case when it will show WA....

View Article


Getting wa even after using same approach as editorial

https://www.codechef.com/JUNE18B/problems/SHKSTR/https://ideone.com/eFFVqJ Here I am using unordered_map in trie to reduce unnecessary space but I have tried it directly also still getting wa. I am...

View Article

why so much less contests are being conducted ???

I want to ask that why so much less contests are being conducted in MAY relative to MARCH or APRIL. As i have summer vacations now and i am all free for enjoying contests .only challenge,cookoff and...

View Article

BfS code for short coding contests.

I just studied BFS. I am trying to find short and simple DFS code/snippet for short programming contests.If anyone has shortest and simplest implementation of BFS, let me know.

View Article

Discord Server: Coder Community

We at Blancode have take an initiative to bring all the coders from the world under one roof.A Discord community to share , discuss , learn and grow.here is link :https://discord.gg/yfr3HzaThanks to...

View Article


Image may be NSFW.
Clik here to view.

ARCTR - Editorial

Problem LinkPracticeContestAuthor:Igor BarenblatTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyMEDIUM-HARDPrerequisitesDynamic Convex-Hull Trick, Heavy-Light DecompositionProblemYou are given...

View Article

STOPSTALK related issue!

Why is Stopstalk not retrieving submissions from Codechef? It's showing some error related to downtime of Codechef, what does it mean?

View Article


TACNTSTR - editorial

PROBLEM LINK:PracticeContestAuthor:Tuấn Anh Trần ĐặngTester:Kamil DębowskiEditorialist:Tuấn Anh Trần ĐặngDIFFICULTY:MediumPREREQUISITES:Dynamic ProgrammingProblemGiven the string S count the number of...

View Article

Help -- KRILLIN problem getting WA

Link to problem : https://www.codechef.com/QUCO2018/problems/KRILLINMy submission : https://www.codechef.com/viewsolution/18905601Getting WA -- need help

View Article


CSUB - Editorial

PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Shang Jingbo and Gerald AgapovEditorialist:Devendra AgarwalDIFFICULTY:Cakewalk PREREQUISITES:Adhoc PROBLEM:Given a string S consisting of only 1's...

View Article

Minion Chef and Bananas (MINEAT) .....Please tell me what's wrong with my...

This is the question: https://www.codechef.com/problems/MINEATThis is my solution - https://www.codechef.com/viewsolution/18905480My solution gives correct answer for sample test cases. I know this...

View Article

getkey() function

hi there,i have been trying to build a puzzle game in c language. for this i need a function to input arrow keys.here is my function which i got from on book.include<dos.h>sgetkey() { union REGS...

View Article
Browsing all 40121 articles
Browse latest View live


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