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 ArticleJust 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 ArticleLittle 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 ArticleSorting 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 Articletell 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 ArticleI 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 ArticleProsum 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 ArticleSIGSEGV 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 Articlemike 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 ArticleMemory 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 ArticleLittle 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 ArticleCan somebody tell me the difference between "while" and "do while"?
What is the different between do while loop and while loop?
View ArticleWhere 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 ArticleWhy 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 ArticleWhy 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 ArticleNeed program to print all prime numbers?
how to write a programme in C language print all the prime numbers 2-1000??????
View ArticleHelp 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 Articlejust 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 ArticleHow 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