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

Image may be NSFW.
Clik here to view.

BINTREE - Editorial

PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:Binary TreeLowest Common AncestorPROBLEM:Given infinite full...

View Article


CUBE - Editorial

Link: contestAuthor: viv001@Tester: gerald@Denote the two cubes to be A[][][] and B[][][]. For every fixed (x,y), let MaxLineLenXY[x][y][z] be the maximum length of a line with x and y coordinates...

View Article


Multiple implement !!!

uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1187In above problem , we need to run floyd-warshal 2 time . Why we need to do so ? My solution :...

View Article

StopStalk: Tool to maintain your algorithmic progress

Hello Coders,Hope you are having a great time coding hard. Here I present to you a Utility tool - StopStalk which will encourage you to keep your algorithmic progress going by coding with your friends...

View Article

STICKS - Editorial

PROBLEM LINK:PracticeContestAuthor:Hasan JaddouhTester:Misha ChorniyEditorialist:Pushkar MishraDIFFICULTY:SimplePREREQUISITES:GreedyPROBLEM:Given an array of $A$ of $N$ integers which represent stick...

View Article


EGRANDR - Editorial

PROBLEM LINK:PracticeContestAuthor:Egor BobykTester:Mugurel Ionut AndreicaEditorialist:Praveen DhinwaDIFFICULTY:CakewalkPREREQUISITES:basic knowledge of programming in any languagePROBLEM:You are given...

View Article

KTTABLE - Editorial

PROBLEM LINK:ContestPracticeAuthor:Sergey KulikTesters:Kevin Atienza and Vasya AntoniukTranslators:Sergey Kulik (Russian), Team VNOI (Vietnamese) and Hu Zecong (Mandarin)Editorialist:Kevin...

View Article

WA in DECSTR

#include<iostream> #include<vector> using namespace std; int main(){ std::ios_base::sync_with_stdio(false); vector <long int> v; int t1,x,t; cin>>t1; for(int i=0;i<t1;i++) {...

View Article


nested classes in c++

consider the following classes: 1.book:holds the properties like book_id,title,author,publisher,category etc... 2.publisher:holds the properties like name,id,address etc.. 3.author:holds the properties...

View Article


WA on ques of detecting cycle in graph using union find

where my code going wrong https://www.codechef.com/viewsolution/10869822.

View Article

COUNTREL - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONPart 1 closed form: (3^n+1)/2 - 2^nPart 2 closed form: 2*4^(n-1) - 3^n + 2^(n-1) + 2^n - (3^n+1)/2 The answer (for both 1 and 2) is in the form of a...

View Article

Create a Java program that will compute for the subject grade of a student...

String [ ][ ] student= {{“Francis M. Reyes”,”92”,”89”,”93”,”94”},{“Joseph E. Estrada”,”80”,”70”,”81”,”78”},{“Ferdinand E. Marcos”,”77”,”93”,”83”,”90”},{“Cory C. Aquino”,”78”,”73”,”70”,”70”},{“Emilio A....

View Article

CHSGMENTS - Editorial

PROBLEM LINK:PracticeContestAuthor:Dymtro BerezeinTester:Mugurel Ionut AndreicaEditorialist:Praveen DhinwaDIFFICULTY:mediumPREREQUISITES:dpPROBLEM:You are given an array $a$ of size $n$. You have to...

View Article


Bug in Codechef Rating , Problem evaluator(July Long)?

Hi all(admin please see this!) , in the recently concluded July long contest , i had solved 4 full problems and 41pts in the 5ht problem . I ended up getting 441 pts in total . But after the contest...

View Article

PUPPYGCD - Editorial

PROBLEM LINK:PracticeContestAuthor:Pavel SheftelevichTester:Vlad MoskoEditorialist:Pawel KacprzakDIFFICULTY:HARDPREREQUISITES:Math, Number-theoryPROBLEM:You are given integer N and integer D. Your task...

View Article


how to find sum%(10^9+7) in a given range of array efficiently

ex 3,4,5,6,7,2 quary l=2,r=5 for i=l to r ans=(ans+Arr[i])%mod;

View Article

Number of Empty Subgrids in a Grid

In CodeForces, I posted a tutorial on how to count the number of empty subgrids in a grid because I couldn't find any tutorial for this specific problem online and it has a score of -13 with no hate...

View Article


AMSGAME1 - Editorial

Problem Link:PracticeContestDifficulty:CAKEWALKPre-requisites:gcdProblem:You are given a set of N positive numbers A[0], A[1], ..., A[N-1]. At each step you pick two unequal numbers and replace the...

View Article

OJUMPS - wrong answer

here is the link of my code- http://www.codechef.com/viewsolution/5215162 can anyone tell me whats wrong with my code? its getting wrong answer but in my compiler I checked all possible cases.

View Article

wierd error

This code was running well in eclipse but when I tried to compile it online it showed this error.Exception in thread "main" java.util.NoSuchElementExceptionat...

View Article
Browsing all 39796 articles
Browse latest View live


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