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

what's the syntax to run my program on codechef's input files.

what should I do to make my program take input from codeshef's files.

View Article


tricky things in FORGETPW

what should be output for 0.0? i'm printing 0 for it but getting wa. what should be output for this case??? or is there anything else i'm missing???

View Article


python input

I want to know how to give input in python like we do in c or c++. Like, 1 2 3i mean output using space not by enter.

View Article

TASTYD - Editorial

Author: Roman Rubanenko Tester: Vamsi Kavala Editorialist: Bruno OliveiraPROBLEM LINKSPracticeContestDIFFICULTYMediumPRE-REQUISITESDivide-and-conquerProblem:Chef is at a restaurant serving dishes....

View Article

AMSGAME1_need help.......

this is the algorithm upon which ihave formed my code..if(n>1) then, if atleast 1 odd number is present in the sequence then the output is 1 .if all the numbers are even then output is 2. if...

View Article


time limit

hello friends , i m new on online coding and don't know much about time limit of a program..i submitted a solution and its written that time limit exceeded now what to do ?

View Article

Runtime error(NZEC) in python but AC in c

When I submitted my code in python, it shows NZEC but when I resubmit it in C with the same logic now it got accepted, I am sure that this python code can not throw any exceptions like...

View Article

wrong answer in prime pallindrome .please tell problem?

When I ran this code int turbo c++ the answer to 31 was coming correctly to be 101.But when I submitted it was giving that "wrong answer"!Please tell me problem?include<stdio.h>long int pal(long...

View Article


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


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