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

ASTRING - Editorial

PROBLEM LINKPracticeContestContributorsAuthor:Amit PandeyTester & Editorialist:Prateek GuptaDIFFICULTY:Easy PREREQUISITES:Sets, ImplementationPROBLEM:Find the smallest lexicographical subsequence...

View Article


How to calculate value of nCr ?

I was doing MARBLES https://www.codechef.com/problems/MARBLES question but I got stuck and dont know how to calculate the value of nCr ? Which method/concept to be used?

View Article


Editorial for JAGAM

Can anyone post unofficial editorial for MIX MIX GAME asked in LTIME63 ?

View Article

THE NEXT PALINDROME ? very very large I/O ?

Problem Link- https://www.codechef.com/problems/PALIN . Please tell the approach to solve this question. Here input number can be of 1000000 digits.

View Article

Invitation to coding club contest

Hello Codechef community,I am really excited to announce a contest organised by coding club of New Delhi, it is our second contest and we continue to do so in order to promote competitive programming...

View Article


Help on why this code is wrong (NUMBERS)?!

Problem: NUMBERS (It seemed rather easy at first!)My solution: #include <bits/stdc++.h> using namespace std; typedef long long lld; bool comp(pair<string, lld> p1, pair<string, lld>...

View Article

CGDISH EDITORIAL - DISHES AND INGREDIENTS

PROBLEM LINK:PracticeContestSetter - Aghamarsh VEditorial - Aghamarsh VDIFFICULTY :EasyPREREQUISITES :Array Sorting , Binary SearchPROBLEM :Given an array of ingredients A, we are to find whether a...

View Article

Factorial-c++

Hello, I want to print the factorial of a number slightly different . I am very new to c so I would like to have some help here. Suppose I give the input as 5 it means I will get 120 as my output..when...

View Article


https://www.codechef.com/problems/KFIB and what is wrong with my code?

include<bits stdc++.h="">using namespace std;define inf 1000000007;typedef long long ll; int main() { ll n,k,s=0,s2=0;cin>>n>>k; ll a[n+1]={0}; for(int i=1;i<=k;i++) { a[i]=1; s++;...

View Article


LECANDY - Editorial

PROBLEM LINKS:PracticeContestDIFFICULTY:CAKEWALKPREREQUISITES:Basic knowledge of arrays and loops.PROBLEM:The program asks you to calculate if all the elephants would get the number of candies that...

View Article

Getting NZEC in java

Getting a NZEC even though it is running fine on my pc, please help! Problem link import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner;class...

View Article

CGMATH Editorial

PROBLEM LINK:PracticeContestSetter - Aghamarsh VEditorial - Aghamarsh VDIFFICULTY :CakewalkPREREQUISITES :Decimal to Binary ConversionPROBLEM :Given two positive integers we need to output which number...

View Article

MIXGA - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:Aleksa PlavsicTester:HussainEditorialist:Taranpreet SinghDIFFICULTY:EasyPREREQUISITES:Game Theory, StrategiesPROBLEM:Given $K$ and an...

View Article


Image may be NSFW.
Clik here to view.

INMAT - Editorial

Problem LinkPracticeContestAuthor:Aleksa PlavsicTester:Mark MikhnoEditorialist:Bhuvnesh JainDifficultyMEDIUM-HARDPrerequisitesBinary SearchProblemYou are given a matrix with of size $N * N$. Each row...

View Article

CHEFAT- Editorial

PROBLEM LINK:Div1PracticeSetter-Bogdan CiobanuTester-Misha ChorniyEditorialist-Abhishek PandeyDIFFICULTY:MEDIUM-HARD PRE-REQUISITES:Segment Tree with Lazy Propagation , Taylor Series , Logarithmic...

View Article


GIVCANDY - Editorial

PROBLEM LINK:ContestPracticeAuthor:Kevin AtienzaTesters:Sergey Kulik and Vasya AntoniukTranslators:Vasya Antoniuk (Russian), Team VNOI (Vietnamese) and Hu Zecong (Mandarin)Editorialist:Kevin...

View Article

Spoj SAS002

import java.math.BigInteger; import java.security.SecureRandom; import java.io.; import java.util.;public class PollardRho {private final static BigInteger ZERO = new BigInteger("0"); private final...

View Article


WA in BEX!?

Problem: BEXMy code:#include <bits/stdc++.h> using namespace std; typedef long long lld; int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); lld T; cin >> T;...

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

Getting partially correct answer on 100% score??

Hi I was trying to solve DevuAndGrapes_DEVUGRAP and somehow succeeded to achieve 100% score but on the results page it shows partially correct answer. Am i missing out on something ?? Here is my...

View Article
Browsing all 39796 articles
Browse latest View live