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 ArticleHelp needed for solving this problem based on graph
Given am array of N integers is it possible to deaign a simple graph of N vertices?.A graph considered simple if it has no self-loop r multi-edges. The condition is that each element of array should be...
View ArticleBITMASK4 - Editorial
Problem Link:ContestPracticeDifficulty:MediumProblem:We need to find the biggest set of parallel lines from the given lines.Explanation: Equation of line is given by $ ax+by+c=0$ -eq(1). where a,b,c...
View ArticleTEST - Editorial
PROBLEM LINK:PracticeAuthor:ADMINEditorialist:SUSHANT AGARWALDIFFICULTY:CAKEWALKPREREQUISITES:Basic looping,Basic Input/OutputPROBLEM:Rewrite small numbers from input to output. Stop processing input...
View ArticleHS08TEST - Editorial
PROBLEM LINK:PracticeAuthor:ADMINEditorialist:SUSHANT AGARWALDIFFICULTY:CAKEWALKPREREQUISITES:Basic looping,Basic Input/Output,Data TypesEXPLANATION:Please refer to the sample solution given by...
View ArticlePlease help me debug my code for CRFTEST
I have a question for CFRTEST. I keep getting a WA. Here's my code:#include <iostream> #include <algorithm> #include <cmath> using namespace std; int main() { int cases; cin >>...
View ArticleFCTRL - Editorial
PROBLEM LINK:PracticeAuthor:ADMINEditorialist:SUSHANT AGARWALDIFFICULTY:EASYPREREQUISITES:Basic looping,Basic Maths(Number Theory)PROBLEM:Find the Number of Trailing Zeroes at the end of...
View ArticleHelp with beautiful arrays
I am getting wrong answer for the problem ICPC16B. Please help. The link to my submission is:https://www.codechef.com/viewsolution/13572487
View ArticleProblem with ICPC16B Beautiful Arrays
The problem goes as follows : "An array a is called beautiful if for every pair of numbers ai, aj, (i ≠j), there exists an ak such that ak = ai * aj. Note that k can be equal to i or j too." So for...
View ArticleGrundy Number
Can someone explain me grundy number as in how to construct it i read about it on topcoders and other websites but was not able to understand the concept behind it and how to construct it
View ArticleKINGSHIP - Editorial
PROBLEM LINK:PracticeContestAuthor:Shiplu HawladerTester:Tasnim Imran SunnyEditorialist:Lalit KunduDIFFICULTY:SIMPLE-EASY PREREQUISITES:Connected GraphTreePROBLEM:Connect all the N(<=10^5) cities to...
View ArticleWhy do I get a SIGFPE?
I keep getting SIGFPE error when i try to run my program. Why so?
View ArticleBITMASK2 - Editorial
Problem Link:PracticeContestDifficulty: EasyProblem: Given two vectors, we have to arrange the elements of these vectors in such a way that their dot product is minimum.Quick Explanation: We need to...
View ArticleESSAY FOR SCHOOL
I've got to write an essay about famous algorithms (mostly sorting and searching) in various programming languages (in my case C++ and Pascal, and maybe but very unlikely Java). Can somebody please...
View ArticleBITMASK1 - Editorial
Problem Link:PracticeContestDifficulty: CakeWalkProblem: Find the minimum amount to purchase all types of stones.Explanation: The input is N*N matrix. We can consider it as N different arrays. We just...
View ArticleBRLADDER - Editorial
PROBLEM LINK:PracticeContestAuthor:Kamil DębowskiTesters:Hasan Jaddouh, Sergey KulikEditorialist:Pawel KacprzakDIFFICULTY:CakewalkPREREQUISITES:Elementary mathPROBLEM:For a given infiniteladder graph...
View ArticleQuery related to SNCKQL17
How can i find and invite a team member for the SNCKQL17 contest? Is anyone interested in joining the team and getting solution in Javascript Language?
View ArticleBITMASK3 - Editorial
Problem Link:PracticeContestDifficulty: Easy-MediumPrerequisites: Binary SearchProblem: Find the maximum number x for which the sum of x natural numbers don't exceeds the litres of water...
View ArticleCODECHEF Attendance
Hey There Guys,Hope You all are having a good time. I want to present you another tool which can show you your attendance in CodeChef.This is especially useful for those who want to check their...
View Article