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

by what name should i save my java file

Sir, I'm using Java to solve the problems, tell me two things. 1. In what way I have to take inputs 2. What name i have to give to my main classPlease, reply asap. Time is running.Devendra

View Article


Number of Computations per second

I always wonder what is the number of computations that a codechef problem does in 1second.Is it of the order 10^8 or 10^9 if i have an algorithm which in worst case does 2*10^8 calculations per second...

View Article


WA after many attempts

Hi everyone! I've written my code for a problem, declared all the data as unsigned long long int, tried many many test cases. Works completely fine on my PC. Can anybody give a hint as to what can...

View Article

POTATOES - Editorial

PROBLEM LINK:PracticeContestAuthor:Shalini SahTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:SIMPLE PREREQUISITES:Prime numbersPROBLEM:Given x(<=1000) and y(<=1000),...

View Article

WA in forgotpw

i am getting WA in forgot password.What are some corner cases which i may be missing? what is the answer if s contains '.'?

View Article


java: NZEC runtime error in FORGETPW

i am getting a runtime error of NZEC in java all the time. Please help/suggestions.

View Article

clarification in question [forgot passward]

is it possible that S evaluates to "." after applying the rules?

View Article

Fenwick tree questions

Can anyone suggest some questions which are based on concept of Binary indexed trees(fenwick trees) and RMQ on codechef?

View Article


How do i know where my code failed!!!!

There should be some provision for showing for which test case our code failed...There are always some questions where we feel we are getting all test cases right, logic right still it gives WA..It...

View Article


Forgot password

what will be the output if input string equal to . or 0.0

View Article

error in for loop using long long

i am encountering error in this line of the code for(i = 0; i < length; ++i) { scanf("%d",&arr[i]); } where i is long long type and arr is array of int.problem is it does work for i below 1000...

View Article

Negatives in FORGETPW

can we have a negative decimal no. as the result???

View Article

NZEC error in CHEFZOT

The program is running correctly in my pc, but it gives an NZEC error here. Problem:CHEFZOT http://www.codechef.com/JUNE14/problems/CHEFZOT solution: http://www.codechef.com/viewsolution/4002779

View Article


GUESS and FORGETPW....!!!!

working in my pc, but here WA...:( Applied all the boundary conditions.

View Article

Getting Wrong answer in Problem CHEFZOT

I think the program is running well in my pc, but it is giving wrong answer here. Problem: CHEFZOT ( http://www.codechef.com/JUNE14/problems/CHEFZOT/ ). Program submitted by me:...

View Article


Getting WA for GUESS

Hello Everyone,I'm trying to submit the solution for the Problem GUESS but every time i'm getting WA here. I've tried 9 times but it failed. I'm really very disappointed. It runs correctly on my pc....

View Article

Chef and Function MOD for negetive numbers

chef and function (FUNC) June Challenge: is -1%1000000007 to be taken as -1 or is it to be taken as 1000000006. Please answer this because it is creating confusion.

View Article


GETTING WA IN FCTRL2

The program works on ideone and my computer by getting wrong answer here......pls help me in figuring this out.... http://www.codechef.com/viewsolution/3899163

View Article

How do some people get AC for their C++ solution and I get TLE, even when my...

My C++ program for the http://www.codechef.com/JUNE14/problems/DIGJUMP ran at 1.08 seconds and got TLE.When I looked at other people who got AC, there were a few that had execution times higher than...

View Article

properties of mod

Are there any resources/tutorials on the properties of mod ?

View Article
Browsing all 40121 articles
Browse latest View live


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