getting paragraph without using gets() function
This is my code...This will executing infinte times...can any help me to getting the paragraph without gets()char str[100];int i=0; for(cin>>str[i];str[i]!='\n';) {++i; cin>>str[i]; }If i...
View ArticleOpen Source Project
Hello everybody , I want to work on an open source project.Please suggest me how to start work and what technologies I should know .And also good links and some good article on open source projects and...
View ArticleDoom Bakes Cakes Wrong Solution (practice->easy)
Hi guys. I am working on the practice problem Doom Bakes Cakes in easy section. Here is the link http://www.codechef.com/problems/CAKEDOOM. I used a simple and obvious strategy to solve the problem....
View ArticleAndrew and the Meatballs again (practice -easy)
http://www.codechef.com/viewsolution/2287181 Here is my solution for the problem Andrew and the Meatballs again in practice session under easy ones. Can anybody help me regarding my solution..its...
View ArticleSALARY - Editorial
PROBLEM LINK:PracticeContestAuthor:Ivan ZdomskyTester:Anton LunyovEditorialist:Anton LunyovDIFFICULTY:CAKEWALKPREREQUISITES:NonePROBLEM:You are given the array W[1], W[2], ..., W[N] of salaries of the...
View ArticleRun Time Error(NZEC) in java..plz help
import java.io.*; public class SumInTriangle { public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[][] arr=new...
View ArticleIn C language
A car is to be parked in 5x5 matrix parking lane.First of all we have to search the free space in the given matrix and then we have to allocate the memory to the car .Afterwards we have to remove the...
View ArticleWrong Input - Little Elephants and Bombs
I have submitted these two codes first and second where first once works and second doesn't. It caused me two runtime errors. I guess the input file contains some extra spaces. Correct me if i'm wrong....
View ArticleLWS - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONLongest Weird Subsequence: This problem can be solved using dynamic programming. The trick to this problem was to come up with a good dp state. We...
View ArticleC using datastructure
A car is to be parked in 5x5 matrix parking lane.First of all we have to search the free space in the given matrix and then we have to allocate the memory to the car .Afterwards we have to remove the...
View ArticleWiseguy_Combinations
In this system user choose 15 numbers,with relevant no of rows generated,In this rows filter no of 1's, x's, and 2's .For example, Here list of match numbers, 1 X 2 1 X 2 1 X 2 1 X 2 1 X 2 1 X 2 1 X 2...
View ArticleASTRGAME - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis game is a modification to the game of Kayles. Like other impartial games, this problem can be solved using Sprague-Grundy theorem.Let's define...
View ArticleINVITES - Editorial
Problem Link:PracticeContestDifficulty:MediumPre-requisites:Dynamic Programming, TreeProblem:Given N families, each of whom declares exactly one enemy among the remaining families, find how many ways...
View ArticleEmail notifications
This is not a coding QuestionI have changed my email id, but I am still getting notifications on my previous email id and not the new one. Could the admins please take a note of this.
View ArticleDiscrete Optimization/Algorithms Course
Hey Codermates there is this course I came across based on "Discrete Optimization" from the University of Melbourne hosted on coursera....... Since we all here are to much interested in Algorithmic...
View Articletransform the expression
import java.io.*; import java.util.Stack; class test { public static void main(String[] args)throws IOException { Stack op; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); op...
View ArticleELPHANT - Wrong Answer
Can someone please tell me what am overlooking in my code? It passes all the test cases given in the example but still gives a wrong answer.Thanks in advance.Here is the link to my code :...
View ArticleUnderstanding Trie and its applications
Hey folks. I was going through data structures and came across TRIE ( prefix tree ) (I don't know much about it except for the fact that it is used for fast searching of stings and used in auto...
View ArticleAccess denied on problems page
When I try to enter the practice problems page, I get "You are not authorized to access this page." I hope admins will fix this asap.
View ArticleTwo different scanning techniques One passing The other showing TLE.
My first solution http://www.codechef.com/viewsolution/2302310 in which i use cin cout gets passed while the other one in which i use printf scanf show TLE:http://www.codechef.com/viewsolution/2302313...
View Article