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

GHMC Editorial

PROBLEM LINK:PracticeContestAuthor:Aleksa PlavsicTester:Hussain Kara FallahEditorialist:Hussain Kara FallahPROBLEMProfessor Gukiz has N students number 1 through N. Let's denote the number of candies...

View Article


PROBSET Editorial

PROBLEM LINK:PracticeContestAuthor:Hasan JaddouhTester:Hussain Kara FallahEditorialist:Hussain Kara FallahPROBLEMChef wrote a problem for his contest. He prepared the test-set. Initially he has...

View Article


EID Editorial

PROBLEM LINK:PracticeContestAuthor:Hasan JaddouhTester:Hussain Kara FallahEditorialist:Hussain Kara FallahPROBLEMChef has N coins. Each coin has a value. Chef has 2 children whom he will give 1 coin to...

View Article

JAGAM Editorial

PROBLEM LINK:PracticeContestAuthor:Aleksa PlavsicTester:Hussain Kara FallahEditorialist:Hussain Kara FallahPROBLEMVanja and Miksi are playing a game on N integer numbers. There is a counter S which is...

View Article

What does the editorial for NUMGAME2 explain?

Can someone provide a more explanatory description for NUMGAME2 Editorial.https://discuss.codechef.com/questions/4162/numgame2-editorial

View Article


what is wrong with my chef and polygon cakes code?

include<iostream>include<math.h>using namespace std;int main(){float T,N,A,K,total,D,p,Ak,x,y,gcd,temp; int X,Y;cin>>T;if(T<1||T>50){ do{ cout<<"\n invalid...

View Article

Image may be NSFW.
Clik here to view.

SPREAD - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONSETTER'S SOLUTIONCan be found here.TESTER'S SOLUTIONCan be found here.

View Article

ACM-ICPC Registration Process

Hello Guys,I came to know about ACM-ICPC this year and I am thinking for taking part in it. I go through the ICPC website as well as codechef blog's on ICPC many times, but it is still unclear...

View Article


Why is the usage of a boolean flag variable instead of an int flag variable...

Problem code: PRIME1 (warning for fast IO is included)Slow IO with boolean: https://www.codechef.com/viewsolution/19890625 (TLE)Slow IO with int: https://www.codechef.com/viewsolution/19890658 (0.94s...

View Article


ONEKING - Editorial

PROBLEM LINK:PracticeContestAuthor:Snigdha ChandaTester:Shiplu HawladerEditorialist:Lalit KunduDIFFICULTY:EASY-MEDIUM PRE-REQUISITES:GreedyPROBLEM:Given N (≤100000) intervals [Ai, Bi], one such...

View Article

Mix Mix Game (JAGAM) Video Editorial

Video solution with explanation: https://youtu.be/EOt8irvqB44

View Article

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 Article

Unable to delete an app on API console.

I have logged in using google and when I try to delete an app created in API console, it asks for password. But when I enter my google account password or any other password I have used before, it says...

View Article


please fix rating asap

please drop the ratings for people plagiarized in JULY long challenge asap......

View Article

output same as expected output, but test fail!

Question asked is:Read a string of length 15, read r and c integers such that r*c=15, arrange the elements of string in form of a matrix which has r rows and c columns.sample...

View Article


NQNF - EDITORIAL

PROBLEM LINK:PracticeContestSetter:Aleksa PlavsicTester:HussainEditorialist:Taranpreet SinghDIFFICULTY:Medium-HardPREREQUISITES:Convex-hull Trick, Square Root decompositionPROBLEM:Given two Arrays $A$...

View Article

XGTR Editorial

Can someone please post an unofficial editorial of "X and Two group(XGTR)" problem asked in august lunchtime 2018 ??

View Article


Query Regarding ZIO

Hi, I want to know, Are we allowed to use computer or to write code and find solution for any given problem in ZIO(1st step for IOI in India), Or we had to solve it using pen and paper itself i.e PC is...

View Article

Need help with GUZAC problem

Link to the QuestionI want to ask why am I getting a wrong answer. Here is my code, I have explained it as well:IDEONE LINK FOR BETTER READABILITY OF CODEdef solve(): #General input section inp =...

View Article

Booth's algorithm for string rotation

I was trying to understand, https://en.wikipedia.org/wiki/Lexicographically_minimal_string_rotation. Can someone explain the algorithm or suggest some good source for the same.Thanks in advance..

View Article
Browsing all 39796 articles
Browse latest View live


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