help needed in ASIA AMRITA ICPC REGIONAL 2016 on problem influence on social...
how to prove that the Every supporter is of the form p^{q-1} , where p , q are primes and q is odd. problem link https://www.codechef.com/problems/AMR16C
View ArticleBuying Sweets
Sachin likes sweets a lot. So, he goes to a market of sweets. There is a row of sweet stalls. Every sweet stall has different sweets. To save some time, he decided to buy sweets from contiguous stalls....
View ArticleFIRESC - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESGraph Theory, Union Find, Depth First SearchPROBLEMAn Office has several people on which a relationship of being mutual friends is defined. Two...
View ArticleHelp in QUERGRID problem
I have been figuring out the solution of the QUERGRID problem of the codechef september challenge 2017. I have gone through the editorial many a times but i was unable to figure out a question. A...
View ArticlePRMQ-Wrong Answer
link to my code : https://www.codechef.com/viewsolution/15524867 question link : https://www.codechef.com/problems/PRMQI donno y im gettng WA..! can anyone tell me wts wrong in my code ?Thanks in...
View ArticleHow post increment and pre increment are used in GCC Compiler ?
include<stdio.h>int main(){int x=12;printf("%d %d",x++,x++);return 0;}
View ArticleProblem in obtaining the right judgement
I have tried solving the "Video Game" problem(ZCO14001) ad i am pretty sure the answer is correct, the subtasks are also showing right results. But when i am submitting they are saying that the answer...
View ArticleCHEFTOWN - Editorial
PROBLEM LINK:PracticeContestDIFFICULTYEASYPREREQUISITESData Structure, Double Ended QueuePROBLEMGiven a permutation of numbers from 1 to N, how many segments of length W exist such thatSuppose the...
View ArticleEqual sum partition
Equal partition: Given a set A of 40 real numbers, find out if there is any way to split A in two sets such that the sums of their elements are equal. (Hint: complexity O(2n/2))How do I solve this...
View Articleoutput not correct
Can anybody please explain me where I went wrong .My output is showing 0 on online compiler, but is working well on codeblocks. link to the question is:https://www.codechef.com/problems/SPREAD ans is...
View Articlewrong answer on large dataset
What is the problem in this merge sort program works fine on smaller dataset but gives the wrong answer on the larger set? Following is the link to the program:https://ideone.com/HgHnLB
View Articlemaking a university leaderboard page
Hey I wanted to make a website for my university's Codechef Campus chapter , and it would be nice if it had a leaderboard based on students' codechef rating or no. of problems solved or something. My...
View ArticleBuying Sweets :Solution ?
Buying SweetsSachin likes sweets a lot. So, he goes to a market of sweets. There is a row of sweet stalls. Every sweet stall has different sweets. To save some time, he decided to buy sweets from...
View ArticleThe Way to a Friends House Is Never Too Long
Can someone post the algorithm to solve this problem ?
View Articleguidance for problem approach
it is always easy to code first problem which can be done by brute force algo (no more prerequisite) but second to i'th problem takes time. I need guidance on 1 how to approach them? 2 how many algo...
View ArticleSum numbers as two groups such that the difference is minimum
So the problem statement(http://opc.iarcs.org.in/index.php/problems/EQGIFTS) is: given n pairs of integers, group them into two sets such that each number from a pair goes to one set so as to minimize...
View ArticleCan Anyone Tell me how to Solve This Easy Queastion
https://www.codechef.com/problems/ALK1105What approach should i use can anyone explain with the help of an example?
View ArticleICPC Team Name
Can i change my icpc team name once we have registered our team for the online round?
View Article