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

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


unauthorized

Hello I am unauthorized to access problem statement,may i know the reason Regards Samuel

View Article


QTREE6 weak test cases

Please check the testcases for problem QTREE6 and take a look at my solution.

View Article

The lead game (TLG) solution error

I am just teaching myself C++ programming and I was wondering if someone could critique this solution and tell me why it gives a wrong answer. For small solutions it gives the correct answers in my...

View Article

TLG My code is giving correct answer in all the testcases i am putting but in...

include <iostream>using namespace std;int main() { int n,a,b,diff1=0,diff2=0;cin>>n; a=new int[n]; b=new int[n]; int i=0; for(i=0;i<n;i++) { cin>>a[i]>>b[i];...

View Article


runtime error(SIGSEGV) for lowest sum

#include<stdio.h> #include<stdlib.h> //#define MAX 10001 void quicksort(long long[],int,int); int partition(long long[],int,int); void swap(long long[],int,int); int main() { int...

View Article

Image may be NSFW.
Clik here to view.

How to sorting by the density

i got problem with my program,i have tried to solve this problem but didnt get solution for along time... please help me. the problem comes from sorting, i want to make sort by density this my...

View Article

COOLING: Need help

#include<stdio.h> int main() { int t ,n,k[100],i,p[100],g,j,l,a,b; scanf("%d",&t); while(t>0) { int f=0; scanf("%d",&n); for(i=0;i<n;i++) {scanf("%d",&g); k[i]=g;}...

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

Knapsack Problems?

What are your favourite knapsack problems? Please link them in the answer. I just learnt the algo and would like to get proficient in it. Thanks :D

View Article

ACM ICPC number of try left

I qualified for Amritapuri Onsite Regionals in the last last list . However i rejected it. This year i had also registered for Kgp Online Round but couldnt participate in the online round due to exam...

View Article

Firesec TLE

Dear friends, I have been trying to solve the question http://www.codechef.com/problems/FIRESC/ for a long time,my logic is definiely right wit complexity but why is it still showing TLE ,could u...

View Article


AND Rounds - Wrong Answer

I am trying to solve AND Rounds http://www.codechef.com/problems/RESN01 or http://www.spoj.com/problems/ANDROUND/ Here is my approach.Let the original array be A[N] and the final array be C[N].(1) If...

View Article

ACM ICPC kanpur regional

are we allowed to take a library of codes for the onsite contest....we have received the mails but it doesnt mention anything about the library..also there was a question on quora saying we are not...

View Article


Can I host a intra-college level coding contest on codechef.com?

The number of coders could be anything between 20 to 200. I saw the "Host your contest" page. Just want to know if it's a sure shot thing. Not like, codechef will review my contest, and will let me...

View Article

runtime error in c code

#include<stdio.h> #include<stdlib.h> int main() { int t ,*a,*b,q,i,j,na,nq,*p,k=0,temp,l; scanf("%d",&t); if(t>5) exit(0); else { for(l=0;l<t;l++) { scanf("%d...

View Article


MCHAIRS - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:SIMPLEPREREQUISITES:Combination, Sum of Binomial CoefficientsPROBLEM:For a given value N, Find the sum of all Combination(N,k) where k varies from 1 to NQUICK...

View Article

need some help in few tricks to reduce my runtime

i always face runtime problem.. what should i do

View Article

Help with segment trees - query processing

Hello all,I am now attempting to solve the problem FLIPCOIN in the practice section, medium difficulty level.I am aware that a naive solution gets TLE... However, I also know that some sort of segment...

View Article
Browsing all 39796 articles
Browse latest View live


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