Wrong file name of my java program
For the "chef" problem, I created a java program in a file Jump.java.However, when I upload my file and compile it, the error log suggests that my file name is Main.java and I should change it to...
View ArticleKFORK - Editorial
Problem link : contestpracticeDifficulty : SimplePre-requisites : Basic programming language conceptsProblem : Find the number of ways to put a black knight on a chessboard with a number of white...
View Articlewhy c# keyword showing compiler error
Sir chef jump program is running on my system but here its showing compiler error in keyword "using" of c# lang.
View Articlewhich compiler to select???
which compiler shall i choose to upload my code ????include<iostream.h>include<conio.h>void main() {double n; cin>>n; int i; i=int(n)%6; if(i==0||i==1||i==3) cout<<"yes"; else...
View ArticleSet System.setOut(); to Command Prompt
I want to set output stream to the Command prompt like this:Process p = Runtime.getRuntime() .exec("C:\\Windows\\System32\\cmd.exe /c start cls"); System.setOut(new...
View ArticleCNPIIM - Editorial
PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:Number Theory PROBLEM:Find number of 2X2 matrices such...
View ArticleChallenge/bottom questions Long competitions
I always end up solving top 5 questions and don't know what approach should I take in order to solve the challenge question. Moreover I find that bottom questions of codechef long challenges are easy...
View ArticleBook for Data structure and algorithms .
I want to learn data structures and algorithms . I have done some basic data structure and programming . I want to learn advanced data structures which book should I use .
View ArticleTopcoder SRM
I generally hear that to improve coding one should do Topcoder Div2 questions , but there are so many srm rounds . So I want to ask which srm contest to start from , like from the beginning or from the...
View ArticleTOURMAP solution giving WA,pls help!
I tried coding the solution of the problem using hashmaps and vectors(not using graph),can someone pls point out the error in my code? Here is my code:http://www.codechef.com/viewsolution/3874881
View Articlehow to sort the co-ordinates (x, y) with respect to x? (c++ stl)
Suppose the list of pairs <(1, 3),(3, 2), (2, 4)> and i want to result as <(1, 3), (2, 4), (3, 2)>. How can i implement it using some STL in C++?
View ArticleSorry, my question isnt related to programming but willl feel delighted if...
Two of my screws fell on its own from my laptop, initially I didn't care much about it. But recently some damage happened to my laptop. Inspite of being in warranty the company is making excuses that...
View ArticleMay challenge 2014 , Sereja and Game problem
Can anybody tell me what is the meaning of optimally in this problem ?
View ArticleAlgorithms and data structures needs to be studied to become good in...
I'm naive and what should I do to gather knowledge of different algorithms and data structures which are necessary to become good in programming contest!
View ArticleLittle Elephant and Balloons
Hi guys i have been working on the LEBALONS problem it has two ambiguitiesIts not mentioned if there are balloons with same color what are the possible edge condiions ?Like 0 minimum color ..
View ArticleNext Pallindrome
Can, anybody help me this code of next pallindrome given below. Problem link:http://www.codechef.com/problems/PALINIt works for the test cases but is not accepted by the...
View ArticleSegmentation fault(core dumped)PZZhelp
include<stdio.h>include<conio.h>int main() { int i,j,k,T,N[10],S[10]; scanf("%d",&T); for(i=0;i<T;i++) { scanf("%d",&N[i]); } for(j=0;j<T;j++) { S[i]=(N[i]*(N[i]+1))/2; }...
View ArticleSegmentation Fault
#include<stdio.h> include<conio.h>int main() { int i,j,k,T; long int N[1000000],S[1000000]; scanf("%d",&T); for(i=0;i<T;i++) { scanf("\n%d",&N[i]); } for(j=0;j<T;j++) {...
View ArticleDeclaring a array
How can i declare a int array of 1000000 elements.I know i can use static however using static would mean that the value of array would remain same through every loop therefore leading to wrong...
View ArticleInformation regarding time limit exceeded
Suppose I have a program which after submission shows time limit exceeded. Does this mean that it has been able to clear all the test cases but could not do so within the required timeORthat before it...
View Article