Quantcast
Browsing all 39796 articles
Browse latest View live

getting wa : lights

i have tried for many test cases my code gives correct answer but on submitting it gives WAmy code: http://www.codechef.com/viewsolution/3795774problem link:...

View Article


MPROD-problem lunchtime

I was unable to solve this problem during the contest and after i was going through the submissions.so,i found this code which is coded by @dreamoon4 who is ranked 1 in this contest but i am unable to...

View Article


Requesting pinned post

I have been quite active on the discussion forum from past 10 days. I have been answering as much queries as I can answer correctly. One thing that I commonly find in the queries asked by new users is...

View Article

python nzec

http://ideone.com/L1fcanIdeone.com am getting nzec error for the problem am new to python http://www.codechef.com/problems/HS08TEST/

View Article

Problem solving using 1D dp .

I have solved this question using 2D recurrence relation(DP) .I have solved few such problems in past which had both 2D and 1D soln But i am not able to figure out proper 1D recurrence relation (DP)...

View Article


MPROD - Editorial

Problem link : contestpracticeDifficulty : EasyPre-requisites : Greedy, Prime factorisationProblem : You are given an array of integers, anytime you can pick two numbers from it and divide them both by...

View Article

Floyd Warshall Dynamic Programming

Can Floyd Warsahll algorithm be applicable with cycles of negative length ?? @kcahdog@vineetpaliwal@anton_lunyov@darkshadows@hkbharath Please help me out with this problem.Thanx in advance :)

View Article

What is wrong with my KFORK code?

So, idk.... Tried all possible test cases (I think...) but WA.my code: http://pastebin.com/6D6KGp7athis is a problem: http://www.codechef.com/LTIME11/problems/KFORK

View Article


What is wrong with my KFORK code?

So, idk.... Tried all possible test cases (I think...) but WA.my code: http://pastebin.com/6D6KGp7athis is a problem: http://www.codechef.com/LTIME11/problems/KFORK

View Article


KFORK - can't find problem in code

Hey guys,I tried solving the KFORK problem in today's lunchtime. My algorithm is almost equivalent to the one given on the editorial for the problem. For some reason, it's not getting AC (passes only...

View Article

Turbo Sort Time Time Limit Exceeded

This program runs in under 5 seconds on Xcode. Could somebody please give me some advice as to why code chef might giving me this time limit error.include <iostream>using namespace std; int...

View Article

Turbo Sort Time Time Limit Exceeded Round 2

I tried using std::sort and std::vector and i'm still getting the time limit error. Perhaps using vectors isn't fast enough.#include <iostream> #include <algorithm> #include <vector>...

View Article

HOTEL - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONSeveral approaches exist to this problem. The simplest solution is to simply count the number of guests present at the hotel for each time from 0 to...

View Article


COOLING Problem

#include<stdio.h> #include<stdlib.h> int cnt,r[30],n,p[30]; void check(int pie) { int max=100,flag=0,index,i; for(i=0;i<n;i++) { if(r[i]>=pie&&r[i]<max) { index=i;...

View Article

Problem Code SNAPE - NZEC while using PHP

Solution Link I tried this simple problem using PHP and I get NZEC. I cant figure out what is the problem with my code. I think my code can easily handle the input data in the given limits. Any...

View Article


WSTRING - Editorial

Problem Link:PracticeContestDifficulty:EasyPre-requisites:Dynamic ProgrammingProblem:A W-String is defined as a string consisting of lower-case alphabets, and exactly 3 "#"s that divide the string into...

View Article

Encode n significant bits of a group of values

someone please help me here how it implemented in c/c++? Given an array of unsigned bytes of arbitary length. Each of these bytes are of n bits in resolution, which means value range lies between 0 and...

View Article


Tri-hexagonal problem

This has been the only problem I've truly been stuck on. For those who browse this thread, I already assume you know the problem, if not just look in the Easy section.Call me a bad coder but I cannot...

View Article

Wifi to Wifi communication for Android

Hello Guyzzz.. This is a paltform of talented Coder.. I hv jst 1 Question.. Is it possible to call wifi to wifi without internet Connection in Android? If yes then How is it possible?

View Article

Prize in contests

Hi all! i'm new here so, just wanted 2 noe: What are prizes/prize money for different contests in Codechef?

View Article
Browsing all 39796 articles
Browse latest View live


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