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

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 Article


KFORK - 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 Article


why 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 Article

which 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 Article

Set 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 Article


CNPIIM - 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 Article

Challenge/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 Article

Book 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 Article


Topcoder 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 Article


TOURMAP 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 Article

how 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 Article

Sorry, 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 Article

May challenge 2014 , Sereja and Game problem

Can anybody tell me what is the meaning of optimally in this problem ?

View Article


Algorithms 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 Article

Little 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 Article


Next 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 Article

Segmentation 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 Article


Segmentation 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 Article

Declaring 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 Article

Information 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
Browsing all 40121 articles
Browse latest View live


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