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

shknum august challenge

how can use power function pow in the codechef

View Article


SMPAIR - Editorial

Problem link : contestpracticeDifficulty : CakeWalkPre-requisites : SortingProblem : Given a sequence a1, a2, ..., aN. Find the smallest possible value of ai + aj, where 1 ≤ i< j≤ NExplanationThis...

View Article


https://www.codechef.com/problems/HS08TEST

Whenever run this code i get wrong answer can someone help me in notifying the error: code:include<iostream>include<iomanip>using namespace std; int main() { int x,i; float bal;...

View Article

T23 - Editorial

PROBLEM LINK:[Contest] T23Author:Nandishwar GargDIFFICULTY:SIMPLEPROBLEM:You are given an array of size N. You have to find every possible subset of the elements in array. Then we have to check 3...

View Article

plz solve this one need the solution as urgent as posible

find the number of positive integers less than n that have a multiplicative inverse with respect to nConstraints N < 10^9Input Format The only line of the input is a single integer N which is...

View Article


Can anyone post the editorial of MCQ game problem (T-24)from Innerve Summer...

I have gone through a lot of successful submissions for MCQ game problem but still not able to understand them ,specially why mod has been changed to mod-2.Please help.

View Article

how to run a for loop

i am unable to use loops in my programming how can i know make uses of loop in programming

View Article

by JAVA or C or C++

A number (N) of lines (extending to infinity) in both directions are drawn on a plane. The lines are specified by the angle (positive or negative) made with the x axis (in degrees). It may be assumed...

View Article


median of n numbers without using array

java program to find median of n numbers without using array

View Article


codevita contest by tcs

Codu And Sum Love Problem Description ```Scanner sc = new Scanner(System.in);long sum = 0;int N = sc.nextInt();for (int i = 0; i < N; i++) {final long x = sc.nextLong(); // read inputString str =...

View Article

SUMTRIAN : NZEC in C#

https://www.codechef.com/viewsolution/19621543 It does have an exit command at the end. I would be surprised if it was memory usage as I've seen similar (100+) memory usage for C# solutions.Not too...

View Article

LISDIGIT - Editorial

PROBLEM LINK:ContestPracticeAuthor:Alexey ZayakinTesters:Hasan JaddouhEditorialist:Alexey ZayakinDIFFICULTY:CakewalkPREREQUISITES:Constructive algorithms, longest increasing subsequencePROBLEM:For an...

View Article

KTHMAX - Editorial

PROBLEM LINK:PracticeContestAuthor:RishabhTester:Kevin Charles AtienzaEditorialist:Vaibhav TulsyanDIFFICULTY:MediumPREREQUISITES:Stacks, Binary SearchPROBLEM:For an array of $N$ integers, you are asked...

View Article


BASE - Editorial

PROBLEM LINK:PracticeContestAuthor:Kevin Charles AtienzaTester:Kevin Charles AtienzaEditorialist:Vaibhav TulsyanDIFFICULTY:Easy-MediumPREREQUISITES:NonePROBLEM:Given an integer $N$, find the number of...

View Article

ANKTRAIN - Editorial

PROBLEM LINK:PracticeContestAuthor:Ankit SrivastavaTester:Kevin Charles AtienzaEditorialist:Vaibhav TulsyanDIFFICULTY:CAKEWALKPREREQUISITES:NonePROBLEM:Given a pattern of arrangement of berths in a...

View Article


KIRLAB - Editorial

PROBLEM LINK:PracticeContestAuthor:Roman KachurTester:Kevin Charles AtienzaEditorialist:Vaibhav TulsyanDIFFICULTY:Easy-mediumPREREQUISITES:Prime-factorization, GCD, Sieve of Eratosthenes, Dynamic...

View Article

Image may be NSFW.
Clik here to view.

CHEFCCYL - Editorial

Ah, I could have used the [hide][/hide] function if I knew it earlier. This would make editorials clearer, I think.PROBLEM LINK:PracticeContestAuthor:Full nameTester:Full nameEditorialist:Full...

View Article


BRIBETR - Editorial

Author:Kamil DebowskiTester:Niyaz NigmatullinEditorialist:Kamil DebowskiDIFFICULTY:MEDIUMPREREQUISITES:two pointers, dynamic programmingPROBLEM...SLOWER SOLUTIONLet's first solve the problem in...

View Article

WEICOM - Editorial

PROBLEM LINK:PracticeContestAuthor:Trung NguyenTester:Oleksandr KulkovEditorialist:Oleksandr KulkovDIFFICULTY:MEDIUMPREREQUISITES:NonePROBLEM:$n$ players participated in tournaments. Each player...

View Article

Wrong Problem in the Contest 'Coding Hours'

In the contest COHR2018, the problem 'Chef And His Algorithm' is probably wrong.The problem asks us to compute the minimum length of a string which consists of all the permutations of the given string,...

View Article
Browsing all 40121 articles
Browse latest View live


Latest Images

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