PRMDIV - Editorial
Problem LinkPracticeContestAuthor:Ivan FeketeTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASYPrerequisitesSieving TechniquesProblemLet $S(x)$ denote the sum of distinct prime divisors of...
View ArticleFRCPRT - Editorial
Problem LinkPracticeContestAuthor:Ivan FeketeTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASY-MEDIUMPrerequisitesLooping Techniques, ObservationsProblemYou are given a matrix $A$ of size...
View ArticleUnable to submit solution as can't select a language
The dropdown menu through which language is selected is unavailable. Please fix it
View ArticleCAKEDOOM: Getting Wrong answer
I have been trying to solve the problem but I am getting wrong answer and I am unable to find the flaw in my logic. Please help me correcting the solution. In my logic I first check for the validity of...
View ArticleFor 100% attendence query
I have a query that I am regular on every major contest for 6 months and due to this july lunchtime my link got broken i submited 2 question correct but it got unrated so can anyone tell me that is...
View ArticleNZEC Runtime Error in Java
Can someone please help me figure out y im getting runtime error NZEC for this code in java.import java.util.Scanner; class moving { public static void main(String args[]) { Scanner sc=new...
View ArticleHow GNU compiler differentiates between " %c" and "%s" in C
In the recent contest (LTIME62B) I made a brute force solution to solve FRCPRT for 30 points. I submitted my solution 2 times. Only difference I made was in the former one I was scanning the input by...
View ArticleHow to do the programmes?
I am a student who recently passed class 12 examination from isc board. The only language which i know the best is Bluej. How should i proceed in codechef??
View Articlepromel name is (Spam_Classification_Using_Neural_Net) can you find what wrong...
include <bits stdc++.h="">using namespace std;define ll long long intint main() { int t; cin>>t; while(t--){ ll n,min,max; cin>>n>>min>>max;...
View ArticleHow do I memoize the following recurrence?
I am trying to solve this problem: https://www.codechef.com/problems/DBOY and I have come up with the following recurrence which apparently seems to work for many tests I tried manually. ll dp(int...
View Articlesebi and the highway
include <iostream>using namespace std; int main() { int a ;cin>>a; while(a--) { long double speed , sg ,fg , d, t ; cin>>speed>>sg>>fg>>d>>t; long double x =...
View ArticleFind number of Coprimes with `N` given in a range.
I have a range [L-R] and I have to find out the number of coprimes with another integer N within the range.The issue is that N varies from 1 <= N <= 10^9, and L,R varies from 1 <= L <= R...
View ArticleLOC July 2018
Can anyone tell me the algorithm for LOC July (Chef and College) question? Please!
View Articleneed help
include <stdio.h>int main() { int test; scanf("%d", &test); while(test--) { int n, rev = 0; scanf("%d", &n); while(n != 0) { rev = rev*10 + n%10; n /= 10; } printf("%d\n", rev); } return...
View ArticleTh code is giving correct output for the question small factorial,but...
The java code for the problem small factorial is giving correct output, but the code chef online judge is resulting wrong answer. The code is given below. Please help me with this. Thanks.import...
View ArticleWrong code is showing in my correct code
1 include<iostream>2 3 using namespace std; 4 int main() 5 { 6 int t; 7 cin>>t; 8 int n; 9 int c; 10 int count2=0; 11 while(t>0) 12 { 13 cin>>n; 14 cin>>c; 15 int a[n]; 16...
View ArticleChef and Mortal Combat
Why is this code partially correct? https://www.codechef.com/viewsolution/19394016
View ArticleCHGCDG - Editorial
PROBLEM LINK:Div1Div2PracticeSetter-Kirill GulinTester-Ivan SafonovEditorialist-Abhishek PandeyDIFFICULTY:EASYPRE-REQUISITES:Sieve of Erastothenes, Binary SearchPROBLEM:Given an array $A$ of $N$...
View Article