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

Need Help #PRMDIV problem

problem url https://www.codechef.com/problems/PRMDIVCan anyone help and chk my solution for above problem I am getting only one input test incorrect and rest all are correct can anyone chk my code and...

View Article


[Java] I get told I need to put my program in a file with the same name as my...

So the algorithm I tried to submit for asks that I make a program where the user submits input, and that is given as out put. The program stops when "42" os passed. I wrote and tested the program, but...

View Article


LOCJUL18 Problem not open for practice

@admin Please make TAJ problem open for submission.

View Article

CKISSHUG - Editorial

PROBLEM LINK:PracticeContestDIFFICULTYSIMPLEPREREQUISITESSimple Math, Repeated SquaringPROBLEMHow many sequences of 0s and 1s (0 meaning a hug, 1 meaning a kiss) of length N are possible, such that...

View Article

LVGFT - Editorial

PROBLEM LINK:PracticeContestAuthor:Zain AliTester:Istvan NagyEditorialist:Oleksandr KulkovDIFFICULTY:MEDIUMPREREQUISITES:DSU (Disjoint Set Union)PROBLEM:You are given a tree on vertices $1,2,\ldots,N$....

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

Image may be NSFW.
Clik here to view.

SUMPOWER - Editorial

Problem LinkPracticeContestAuthor:Ivan SafonovTester:Hasan JaddouhEditorialist:Bhuvnesh JainDifficultyEASYPrerequisitesPrefix sums, Sliding WindowProblemYou are given a string $S$ of length $N$ and an...

View Article

F2NDMAX - Editorial

PROBLEM LINK:Div1Div2PracticeSetter-Hasan JaddouhTester-Ivan SafonovEditorialist-Abhishek PandeyDIFFICULTY:Easy-Medium PRE-REQUISITES:Graph Theory, Concepts of Acyclic Graph like Indegree &...

View Article


CNOTE - Editorial

PROBLEM LINK:PracticeContestAuthor:Sunny AggarwalTester:Hiroto SekidoEditorialist:Kevin AtienzaDIFFICULTY:CAKEWALKPREREQUISITES:Basic programmingPROBLEM:Chef has a poem that fits in X pages, but his...

View Article


HS08TEST: getting wrong answer

Unable to find bug in ATM problem, infact its working in my compiler dont know why showing wrong answer... Kindly Help...I've provided my code below Thank You #include<stdio.h> int main() { int...

View Article

Editorial of LOCJULY18 ?

Please share the editorial for this contest !

View Article

gettting wrong answer help

problem is:https://www.codechef.com/problems/LECANDY my solution but it gives wrong answer :include<iostream>include<vector>using namespace std; int main() { int t; cin>>t; int...

View Article

i dont understand why my soln. is wrong??Plz help me. I m stucked past 2 days.

Check my soln https://www.codechef.com/viewsolution/19410708. Please answer clearly.

View Article


STOPSTALK related issue!

Why is Stopstalk not retrieving submissions from Codechef? It's showing some error related to downtime of Codechef, what does it mean?

View Article

Chef and String

my solution link is https://www.codechef.com/viewsolution/19411078 i don't understand where am i wrong. please help me out.

View Article


MINEAT - Editorial

PROBLEM LINK:Div1, Div2PracticeAuthor:Praveen DhinwaTester:Triveni MahathaEditorialist:Adarsh KumarDIFFICULTY:Easy-MediumPREREQUISITES:Binary searchPROBLEM:You are given an array $A$ of $N$ integers....

View Article

why i am getting wrong ans in this problem?

include<bits stdc++.h="">using namespace std; int main() { int i,n,t; unsigned long int x,dif; vector<unsigned long="" int="">ch; cin>>t; while(t--) { cin>>n;...

View Article


Editorial of BINSHFFL

Please update BINSHFFL with its editorial, I am eagerly waiting for it.

View Article

can anyone give me some more test cases beacuse my all test cases are right...

include <iostream>define lli long long intusing namespace std;int main() { lli t; cin>>t; while(t--) { lli n,minx,maxx; cin>>n>>minx>>maxx; lli w[n],b[n],a=(-1),p,temp=0;...

View Article

TLE in only one test case of COLCHEF

My solution to "Chef and College", from the July 2018 LoC Contest, is getting TLE in one testcase of the second subtask: https://www.codechef.com/viewsolution/19359475 . I tried using a simple...

View Article
Browsing all 39796 articles
Browse latest View live


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