Array Transform Problem
Here's the link to the problem : http://www.codechef.com/problems/ARRAYTRMI haven't come across a similar problem before, and after giving much thought to it, I am unable to arrive at a suitable...
View ArticleWhy allways tme exceed error arises.....?
t=raw_input() pos=t.find(" ") num1=t[:pos] num2=t[pos+1:] count=0 num1=int(num1) num2=int(num2) i=0 while i<num1: numbers=input() if numbers%num2==0: count=count+1 i=i+1 print count
View ArticlePRETNUM problem-why am i getting time limit exceeded error?
link text This is the link to my code. The space used is 2340KB and time taken is 1.01 secs. how can i reduce memory usage? I have tried using recursions but in vain. Kindly help.
View Articlewhat is my mistake--voters
include<iostream>using namespace std;int id[10000000];int main() { int n1,n2,n3,temp,max,count; cin>>n1>>n2>>n3; n1=n1+n2+n3; for(int i=0;i<n1;++i) {="" cin="">>temp;...
View Articleruntime error(SIGSEGV) for lowest sum
#include<stdio.h> #include<stdlib.h> void quicksort(int*,int,int); int partition(int*,int,int); void swap(int*,int*,int*); int main() { int t,k,q,i,j,p,*a,*b,*sum,qi,c; //printf("Enter no...
View Articlecheating in december long
http://www.codechef.com/users/dragonslayerv2http://www.codechef.com/users/dragonslayerxThese two contenstants seem to be cheating. Exact same scores in the problems and the same order and time in which...
View ArticleALEXNUMB getting wrong answer
I am getting wrong answer for ALEXNUMB problem .However i tried for the given test case and its giving me perfect solution. Those who have successfully solved this problem Please post the test cases...
View ArticleC++ Handling Large Integer Values
Iam new to Codechef . I don't know how to handle very large integer values . The Problems given usually have large no's like 10^10 . I have seen the use of Mod but couldn't understand it well .
View ArticleGetting WA means wrong output whereas TLE means no output ?
Getting a WA means that the program produced incorrect output but when I get TLE it means that the program was terminated before it produced any output .. Is this understanding correct ? Can anyone...
View ArticlePlz help solving COOLING Problem??....newbie to codechef
Guys, I have tried solving Cooling problem with many inputs and I even get the desired output on my pc, but still getting "wrong answer" on code chef. Here is my code.@...
View ArticleCooling pies problem help
I am trying my hands on problem "Cooling Pies" sectioned under Easy Problems. I have devised an algorithm which I believe is correct. Here are the provided test cases. 2 3 10 30 20 30 10 20 5 9 7 16 4...
View ArticleDecember long contest - unable to access question
whenever i am trying to open a problem in December Challenge 2013, it shows me access denied problem. till yesterday i was able to open the questions. I don't know or even guess the reasons behind it....
View ArticleCannot access the problem page December Long Challenge
Hello, I cannot access the contest with the message: "You are not authorized to access this page.".
View ArticleDenied access from dec challenge!
I am being denied access to problems of december challenge without any reason! I submitted a solution and internet was slow and so i reloaded. The solution was given SIGSEGV.Can anyone explain this ?
View ArticleAccess denied on problems page
When I try to enter the practice problems page, I get "You are not authorized to access this page." I hope admins will fix this asap.
View ArticleINTEST problem:Clarifications Needed
I have 2 questions related to the Enormous Input Test(INTEST) problem(Practice Easy).First: Here are two codes that I have: http://www.codechef.com/viewsolution/3056713 was accepted as correct and...
View Articleruntime error nzec
kind of new to this code chef. getting this error often even for the easy programs though i had tested them in other runtime environments. please help how to tackle them. thanks
View ArticleJOHNY - Editorial
PROBLEM LINK:PracticeContestDIFFICULTY:CAKEWALKPREREQUISITES:NonePROBLEM:Given an unsorted array of unique elements, find the position of a specified elements in array’s sorted form.QUICK...
View ArticleSDSQUARE - Editorial
PROBLEM LINK:PracticeContestDIFFICULTY:SIMPLEPREREQUISITES:High school mathsPROBLEM:Calculate the number of perfect squares between a and b which do not contain any digit other than 0, 1, 4 and 9....
View ArticleDivisibility
How can i check if A^B is divisible by C^D for given A,B,C and Dedit :this was asked in latest SRM div 2
View Article