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

HS08TEST - Editorial

PROBLEM LINK:PracticeAuthor:ADMINEditorialist:SUSHANT AGARWALDIFFICULTY:CAKEWALKPREREQUISITES:Basic looping,Basic Input/Output,Data TypesEXPLANATION:Please refer to the sample solution given by...

View Article


Segmentation fault. please help..

I am getting segmentation fault for this problem. link textit accepts 9 test cases, but not the 10th onehere's my solution link text

View Article


spoj the benefactor

i dont know why i am getting wrong answer can any one please help me,thanks in advance link text

View Article

regarding competiton

pleases tell me that what things i need to know to create own solution because i m feeling difficulty in solving easy level problems beside i learnt c++ and data strctur in college

View Article

Modulo 10^9 +7

Why are we ask to take modulo 10^9 + 7 (1000000007) in many problems? What is the arithmetic logic behind it can anyone clear it out?Thanks!

View Article


Image may be NSFW.
Clik here to view.

KINT - Editorial

PROBLEM LINK:PracticeContestAuthor: Vitaliy Herasymiv Tester: Istvan Nagy Editorialist: Amit PandeyDIFFICULTY:Medium.PREREQUISITES:Dynamic ProgrammingPROBLEM:Given a set of integers $\{0, 1, 2, ...,...

View Article

DIVGOLD why WA?

This is my submission link (http://www.codechef.com/viewsolution/6566159) This is my code and I dont know why I am getting WA, can someone point out from which kind of testcase will my code get WA....

View Article

Regarding SPOJ-KGSS

Problem :SPOJ-KGSSMy approach: I have implemented a segment tree for finding max in [l,r]. Whenever any query is asked I find out the maximum element in [l,r] and then update the segment tree by...

View Article


wierd error

This code was running well in eclipse but when I tried to compile it online it showed this error.Exception in thread "main" java.util.NoSuchElementExceptionat...

View Article


DIVGOLD getting wa

i am getting wa in DIVGOLD, below is my code. Please tell me where i am wrong.link of my solution.

View Article

IN MARCH COOK OFF WOULD ANYONE PLEASE PROVIDE ME WHERE I AM WRONG IN FIRST...

/ MINIMIZING THE STRING CHANDAN KUMAR CSE /include<stdio.h>include<string.h>define s(x) scanf("%d",&x);define wh(t) while(t--)int main(void) { int test,len,i,j,pos,pos2,f,k,l,ppp,ds,ts;...

View Article

STRBIT - Editorial

PROBLEM LINK:PracticeContestAuthor: Vitaliy Herasymiv Tester: Istvan Nagy Editorialist: Amit PandeyDIFFICULTY:Easy.PREREQUISITES:BIT, segment tree.PROBLEM:Determine minimum amount of minutes required...

View Article

STRAB - Editorial

PROBLEM LINK:PracticeContestAuthor: Vitaliy Herasymiv Tester: Istvan Nagy Editorialist: Amit PandeyDIFFICULTY:Easy-Medium.PREREQUISITES:Counting, Dynamic Programming, Recursion.PROBLEM:Given strings...

View Article


Gettig wrong answer in DIVGOLD

link is http://ideone.com/BeQeYV

View Article

divgold cook off please help

http://ideone.com/mnN5pw what is the wrong with this code please explain in detail.

View Article


WA in spoj ONEZERO[closed after ac]

Please explain what is missing or what is wrong.Problem link: http://www.spoj.com/problems/ONEZERO/solution: http://ideone.com/16UtzuThank you!EDIT: changed the solution a bit:...

View Article

Small Factorial, I tested my solution against WOLFRAM ALPHA but still wrong...

http://www.codechef.com/viewsolution/6569544here is my solution. I've checked as many possible cases I can but no use, still WA.

View Article


Image may be NSFW.
Clik here to view.

VISITALL - Editorial

PROBLEM LINK:PracticeContestAuthor: Vitaliy Herasymiv Tester: Istvan Nagy Editorialist: Amit PandeyDIFFICULTY:Easy.PREREQUISITES:Simulation.PROBLEM:Given a robot and $N\times N$ grid, find any valid...

View Article

DIVGOLD - Editorial

PROBLEM LINK:PracticeContestAuthor: Vitaliy Herasymiv Tester: Istvan Nagy Editorialist: Amit PandeyDIFFICULTY:Cakewalk.PREREQUISITES:Simulation of brute force algorithm.PROBLEM:You have a string $S$...

View Article

DIVGOLD - What is the test case am missing ?

Hey, Need help. I am sorting the string and where ever am finding a mismatch , I am printing that character and all characters after it, excluding the first occurrence of the mismatched character, .....

View Article
Browsing all 39796 articles
Browse latest View live