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 ArticleLOCJUL18 Problem not open for practice
@admin Please make TAJ problem open for submission.
View ArticleCKISSHUG - 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 ArticleLVGFT - 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 ArticleLECANDY - 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 ArticleSUMPOWER - Editorial
Problem LinkPracticeContestAuthor:Ivan SafonovTester:Hasan JaddouhEditorialist:Bhuvnesh JainDifficultyEASYPrerequisitesPrefix sums, Sliding WindowProblemYou are given a string $S$ of length $N$ and an...
View ArticleF2NDMAX - Editorial
PROBLEM LINK:Div1Div2PracticeSetter-Hasan JaddouhTester-Ivan SafonovEditorialist-Abhishek PandeyDIFFICULTY:Easy-Medium PRE-REQUISITES:Graph Theory, Concepts of Acyclic Graph like Indegree &...
View ArticleCNOTE - 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 ArticleHS08TEST: 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 Articlegettting 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 Articlei 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 ArticleSTOPSTALK 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 ArticleChef 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 ArticleMINEAT - 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 Articlewhy 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 ArticleEditorial of BINSHFFL
Please update BINSHFFL with its editorial, I am eagerly waiting for it.
View Articlecan 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 ArticleTLE 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