Wealth Disparity
Well this is the question:Boing Inc, has N employees, numbered 1 ... N. Every employee other than Mr. Hojo (the head of the company) has a manager (P[i] denotes the manager of employee i). Thus an...
View ArticleGetting multiple answers for same input and same code (Squence Land INOI 2013)
I have tried to read input from file and then I get the write output but when I use scanf() or cin to read inputs then i get different outputs on eclipse every time I run it , even I have tried running...
View ArticleC++ Switch statement !!
So I recently learned about switch statements so I know that they are used as a replacement for if statements. For example, if statement- if (x == 1){do function(a)} if (x == 2){do function(b)} ... So,...
View ArticleC++ Debugging Tricks !!!
So, I am having problems debugging my code in C++. It takes about like 1/2 hour to debug and then I realize how silly the mistake was. I am new to C++ so please help.
View ArticleProgramming tutorials/guide blog for beginners
Hi,I've written few blog entries to provide some useful resources and problems to solve to help people get comfortable with the concepts. Check out them here : Dynamic ProgrammingSegment TreesSieves —...
View ArticleList of some spammers here...
[1] anjelikahassan, [2] ansondavid, [3] charlescolin, [4] clinic, [5] mbacourse, [6] teamouting, [7] texiservicesI will be adding more if i find till then admin please delete the account of these users...
View ArticleHelp needed for INOI 2017.
I am in class 8 and I gave ZIO this year and I am getting a score 55-60 so I'll probably qualify. But I want to ask that how to prepare for INOI. I currently know Python, Javascript, HTML and CSS and...
View ArticlePaying up ,MARCHA1 ,Wrong Answer...please help me..
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args) throws Exception{ BufferedReader s= new BufferedReader(new InputStreamReader(System.in)); int n;...
View ArticleWhy does a large array declared in main give RE but not when declared globally?
I was solving the Highway Bypass question. I made an int array which would be of at most 500 by 500 size, and it was getting an RE on some cases. SolutionHowever when I declared the DP array and the...
View ArticleHow to use Code::Blocks ?
So I want to ask the following questions on how to use code::blocks - How do we use code::blocks with linux terminal? How do we submit a problem on codechef by coding on code::blocks? (Currently I am...
View ArticleDynamic programming
Questionhttps://www.hackerrank.com/challenges/fair-cutSolutionhttp://pastebin.com/1R543whNThing is that I can't formulate the solution from editorial or given link above can anyone explain in detail...
View ArticleSETELE - Editorial
PROBLEM LINK:ContestPracticeAuthor:Istvan NagyTester:Kevin AtienzaTranslators:Sergey Kulik (Russian), Team VNOI (Vietnamese) and Hu Zecong (Mandarin)Editorialist:Kevin...
View Articlepython help.!!!
i want to take integer input in an array ,and the integer input should be space separated.. how can i do it...
View ArticleTaking input Python
Hello, I am a rookie programmer and only recently started using CodeChef. I was testing out the CodeChef ide and realised that I got an error everytime i tried to take input on the Python ide. The...
View ArticleFind two points with the closest Euclidean distance.
Please help me to solve this : S is a Set of n points on a 2D plane , find two points with the closest Euclidean distance?
View ArticleWrong login or password!
When I try to submit for LTIME42 it gives me this message Wrong login or password!
View ArticleDS and Algo + Competitive Programming - All you need
SyllabusIOI SyallbusACM-ICPC SyllabusMotivationalTeen mathletes do battle at algorithm olympics-Gennady Korotkevich(tourist)Target in six steps– Petr MitrichevNikhil Garg’s blog posts 2010 ICPC...
View ArticleBALANPOL - Editorial
PROBLEM LINK:PracticeContestAuthor:Praveen DhinwaTester:Animesh FatehpuriaEditorialist:Pawel KacprzakDIFFICULTY:MEDIUMPREREQUISITES:Geometry, dpPROBLEM:For a given convex polygon with $N$ vertices and...
View ArticleCHEFSTUD - Editorial
PROBLEM LINK:PracticeContestAuthor:Praveen DhinwaTester:Animesh FatehpuriaEditorialist:Pawel KacprzakDIFFICULTY:CAKEWALKPREREQUISITES:NonePROBLEM:For a given string $S[1..N]$ consisting of characters...
View Article