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 ArticleSegmentation 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 Articlespoj the benefactor
i dont know why i am getting wrong answer can any one please help me,thanks in advance link text
View Articleregarding 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 ArticleModulo 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 ArticleKINT - 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 ArticleDIVGOLD 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 ArticleRegarding 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 Articlewierd 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 ArticleDIVGOLD getting wa
i am getting wa in DIVGOLD, below is my code. Please tell me where i am wrong.link of my solution.
View ArticleIN 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 ArticleSTRBIT - 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 ArticleSTRAB - Editorial
PROBLEM LINK:PracticeContestAuthor: Vitaliy Herasymiv Tester: Istvan Nagy Editorialist: Amit PandeyDIFFICULTY:Easy-Medium.PREREQUISITES:Counting, Dynamic Programming, Recursion.PROBLEM:Given strings...
View Articledivgold cook off please help
http://ideone.com/mnN5pw what is the wrong with this code please explain in detail.
View ArticleWA 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 ArticleSmall 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 ArticleVISITALL - 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 ArticleDIVGOLD - 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 ArticleDIVGOLD - 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