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

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 Article


Why 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 Article


Image may be NSFW.
Clik here to view.

PRETNUM 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 Article

what 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 Article

runtime 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 Article


cheating 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 Article

ALEXNUMB 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 Article

C++ 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 Article


Getting 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 Article


Plz 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 Article

Cooling 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 Article

December 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 Article

Cannot 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 Article


Denied 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 Article

Access 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 Article


INTEST 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 Article

runtime 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 Article


JOHNY - 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 Article

SDSQUARE - 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 Article

Divisibility

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


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