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

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 Article


Buying 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 Article


FIRESC - 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 Article

Help 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 Article

PRMQ-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 Article


How 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 Article

Problem 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 Article

Image may be NSFW.
Clik here to view.

how to solve this easy problem?

PS-Contest is over now

View Article


CHEFTOWN - 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 Article


Equal 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 Article

output 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 Article

wrong 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 Article

code optemization

Can any one help me with code optimization

View Article


making 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 Article

Buying 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 Article


The Way to a Friends House Is Never Too Long

Can someone post the algorithm to solve this problem ?

View Article

guidance 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 Article


Sum 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 Article

Can 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 Article

ICPC Team Name

Can i change my icpc team name once we have registered our team for the online round?

View Article
Browsing all 39796 articles
Browse latest View live


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