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

problem regarding dynamic programming

Dynamic Programming where i found myself somewhat lagging. Please do tell where should i start and how to proceed.

View Article


Getting runtime error not able to understand?

#include<stdio.h> #define max 100002 long int start[max],end[max],k[max],n,tmp[max],temp1[max],temp2[max],temp3[max]; long int mergesort(long int arr1[],long int arr2[],long int arr3[],long int...

View Article


Two similar codes (almost ), one getting RUNTIME error & the other got AC

first i submitted using vector (i have done this earlier in other problems successfully :) ) but got runtime error & same code i submitted using structure(everything was same except i stored the...

View Article

Any prize of contest winning?

When anyone win long or short contest, is there any prize for that?

View Article

MTRICK - TLE (python)

Here's the link to my solution : http://www.codechef.com/viewsolution/3243656 i saw some accepted solutions which were the same except that they used O(n^2) techniques for reversing. I can't get why I...

View Article


Runtime Error: Cleaning Up (CLEANUP)

Hi coders, I was trying my hands on clean up problem and getting runtime error. I am new to python and don't know much about the functioning of it. May be that's why I am getting a runtime error as...

View Article

How to check answers online?

First of all sorry , if such questions are not allowed here and if such questions are allowed then please help me.I am trying to write a Java code which will take source file in C , C++ and Java and...

View Article

Factorial- FCTL. my code gives TLE. bt it runs fine on ideone for the given...

I checked the code in my computer also for different inputs. enter code here #include<stdio.h> #include<iostream> #include<math.h> #include<map> using namespace std; int main()...

View Article


Image may be NSFW.
Clik here to view.

TAPAIR - Editorial

PROBLEM LINK:PracticeContestAuthor:Tuan Anh Tran DangTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:HardPREREQUISITES:DFS orderPROBLEM:Given an undirected simple graph with N nodes and M...

View Article


TOURBUS - Editorial

PROBLEM LINK:PracticeContestAuthor:David StolpTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:ChallengePREREQUISITES:Greedy, Dynamic Programming, Search, RandomPROBLEM:Given a undirected graph...

View Article

MTRICK - Editorial

PROBLEM LINK:PracticeContestAuthor:Nikhil GargTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:Easy-MediumPREREQUISITES:Programming Language, Simple Math.PROBLEM:Perform the "Ancient Algorithm"...

View Article

PLZLYKME - Editorial

PROBLEM LINK:PracticeContestAuthor:Kaushik IskaTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:SimplePREREQUISITES:Programming LanguagePROBLEM:Define F[1] = S, F[i > 0] = F[i - 1] * (C + 1)....

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


SEAGRP - Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey NaginTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Matching, Gaussian EliminationPROBLEM:Determine whether there is any perfect...

View Article

FRBSUM - Editorial

PROBLEM LINK:PracticeContestAuthor:Constantine SokolTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Segment Tree, Binary Search, Persistent Segment Tree.PROBLEM:Given...

View Article


CNTDSETS - Editorial

PROBLEM LINK:PracticeContestAuthor:Mugurel Ionut AndreicaTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:HardPREREQUISITES:Combination, Inclusion–exclusion principle, Euler's...

View Article

CHEATING IN JANUARY LONG

Problem : MeteorAll they did was a : find and replacehttp://www.codechef.com/viewsolution/3250056http://www.codechef.com/viewsolution/3247304PS : All please read CodeChef Code Of Conduct , there is...

View Article


Suggest new features you think should be added to CodeChef ?

I know have improved a lot by this codechef...its really awesome. But i would like to tell to the admin that codechef should improve a bit more, imean should add some more features....Such as message...

View Article

TSORT- TLE.. i tried merge sort and sorting in algorithm header

I tried merge sort. and stable_sort() bt both gives TLE. plz help.links to my submission is given.

View Article

BUY1GET1 - WA

It seems like an easy problem. But somehow, I am getting a WA. I can't seem to figure out why. Please have a look A description of my algorithm - Made two arrays A[26] and a[26] for storing the count...

View Article
Browsing all 39796 articles
Browse latest View live


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