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

Little chef and numbers

I am probably missing something in the corner cases. (As i am not regular to codechef). Do the test cases contain the data, outside the limits of the expected inputs (i.e. negative testcases). In such...

View Article


Just reevaluate MIKE3

for following test case my code http://www.codechef.com/viewsolution/3532424 gave wa but its accepted ....after some modification i resubmit a new code that give right ans and accepted.please check for...

View Article


Little Chef and Numbers

Note :There may be trailing spaces on each line of input. ....it is given in ques i have written code for this problem...and it is giving wrong answer on codechef.... i m unable to understand the what...

View Article

Sorting large array of long long int

Hey guys, i'm working on a problem where I have to sort large array of long long int ( array size of nearly 1000000). I've tried to do it with merge sort as it has a complexity of O(n*log(n)) in worst...

View Article

tell me answer please

write single statement in C languagefirst reduce the value A by 1, then find the sum of A and B, then increment the value of B by 1. and assign to the C.?? thats questionI solve like this tell me this...

View Article


I am new to Code chef, what books I need to read to understand the problem

Hi All, I do find difficult in understanding the problems as its based on Mathematics what books I need to go through before getting code chef pracatise exercise?Thanks Sridhar

View Article

Prosum in march challenge 2014

I am getting correct results for my code in my compiler for number of sample inputs.But i am getting wrong answer after submitting.I think their might be a presentation error.Please help.../

View Article

Little chef and numbers

question deleted ...

View Article


SIGSEGV error in Team Split -plz help

i think this error is due to this statement.... int s[3000000]; plz help how to allocate this size array...

View Article


mike and stamp (MIKE3) unable to understand it completely

i am unable to understand this problem completely...... please explain it to me.... if possible give me an example

View Article

Memory used by a code

How we have to measurse the memorry of code, in submission it is showing as 2.2M but in my sys it is only 1 KB.

View Article

Little chef and Numbers(PROSUM) getting wrong ans

in my system the program is working well and giving correct ans but when i sumbit it it show wrong answer after the 0.12 sec ????? whats wrong after 0.12 sec????

View Article

Can somebody tell me the difference between "while" and "do while"?

What is the different between do while loop and while loop?

View Article


Where do i select language for my code?

where do i select the language like C or c++i only know about C and C++, not about something like gcc 4.8.1 or something like that...

View Article

Why I am getting wrong answer?

well,i was trying this question:https://www.hackerrank.com/contests/may13/challenges/equal and i am getting wrong answer for two test cases can someone tell me where this program is going wrong along...

View Article


Why I am getting WA?

include<iostream>using namespace std; int main() { long long int T,N,W,n,m,ans; cin>>T; if(T>=1&&T<=10) { while(T>0) { n=m=0; ans=0; cin>>N;...

View Article

Need program to print all prime numbers?

how to write a programme in C language print all the prime numbers 2-1000??????

View Article


Help to DELETE the "DELETE" error

Please look into this code.. http://www.codechef.com/viewsolution/3544714It got accepted on commenting the three delete functions at the end, but gives a SIGABRT error on submitting as it is..Plz Help.

View Article

just need Ques please

Write the value of c after the execution of each of the following Boolean operations. a and b are two integers with values 21 and 34 respectively. i) c = a | b ii) c = a & b iii) c = a >> 3...

View Article

How can I learn most of algorithms used in CodeChef contests?

I wish to know and learn most of the algorithms used in contests in codechef to optimize and reduce time of my codes

View Article
Browsing all 40121 articles
Browse latest View live