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 Articlehttps://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 ArticleT23 - 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 Articleplz 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 ArticleCan 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 Articlehow 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 Articleby 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 Articlemedian of n numbers without using array
java program to find median of n numbers without using array
View Articlecodevita 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 ArticleSUMTRIAN : 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 ArticleLISDIGIT - Editorial
PROBLEM LINK:ContestPracticeAuthor:Alexey ZayakinTesters:Hasan JaddouhEditorialist:Alexey ZayakinDIFFICULTY:CakewalkPREREQUISITES:Constructive algorithms, longest increasing subsequencePROBLEM:For an...
View ArticleKTHMAX - Editorial
PROBLEM LINK:PracticeContestAuthor:RishabhTester:Kevin Charles AtienzaEditorialist:Vaibhav TulsyanDIFFICULTY:MediumPREREQUISITES:Stacks, Binary SearchPROBLEM:For an array of $N$ integers, you are asked...
View ArticleBASE - Editorial
PROBLEM LINK:PracticeContestAuthor:Kevin Charles AtienzaTester:Kevin Charles AtienzaEditorialist:Vaibhav TulsyanDIFFICULTY:Easy-MediumPREREQUISITES:NonePROBLEM:Given an integer $N$, find the number of...
View ArticleANKTRAIN - Editorial
PROBLEM LINK:PracticeContestAuthor:Ankit SrivastavaTester:Kevin Charles AtienzaEditorialist:Vaibhav TulsyanDIFFICULTY:CAKEWALKPREREQUISITES:NonePROBLEM:Given a pattern of arrangement of berths in a...
View ArticleKIRLAB - Editorial
PROBLEM LINK:PracticeContestAuthor:Roman KachurTester:Kevin Charles AtienzaEditorialist:Vaibhav TulsyanDIFFICULTY:Easy-mediumPREREQUISITES:Prime-factorization, GCD, Sieve of Eratosthenes, Dynamic...
View ArticleCHEFCCYL - 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 ArticleBRIBETR - Editorial
Author:Kamil DebowskiTester:Niyaz NigmatullinEditorialist:Kamil DebowskiDIFFICULTY:MEDIUMPREREQUISITES:two pointers, dynamic programmingPROBLEM...SLOWER SOLUTIONLet's first solve the problem in...
View ArticleWEICOM - Editorial
PROBLEM LINK:PracticeContestAuthor:Trung NguyenTester:Oleksandr KulkovEditorialist:Oleksandr KulkovDIFFICULTY:MEDIUMPREREQUISITES:NonePROBLEM:$n$ players participated in tournaments. Each player...
View ArticleWrong 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