LOC July 2018
Can anyone tell me the algorithm for LOC July (Chef and College) question? Please!
View ArticleNeed help..Wrong answer for Fibonacci string problem.
The problem is Fibonacci string My solution:include<iostream>include"string"using namespace std; int main() {char s[100001];int t,i=0; std::cin>>t; fibo:while(i<t) {i++;="" int=""...
View Articlelearning process of cp
i want to start competitive programming but it seems very hard to me..i know basics of c and learning c++.i don't know what to do next or what to learn next.i want to know what should i learn to start...
View Articlerating-drop after plagiarism
Will there be a fall in ratings after the plagiarism in July challenge, and if yes then till when that can be observed in one's account??
View ArticleWESTAND Need help
I am trying to solve WESTAND problem from DEC-17 long Challenge. There is no editorial for this problem and the solutions submitted are not helping either. Can someone share their approach or share...
View ArticleRAINBOWA - Runtime Error
My given below code runs for every input given the sample test case but is giving me a runtime error. Help me with it, class Extra { public static void main(String[] args) { Scanner input = new...
View ArticleTwo Numbers - Runtime error
Hello, so I've been dealing with this "Two Number" problem and when I run this code on my IDLE it gives back the correct output, but when I try sumbit my code, CodeChef return Runtime error. Can you...
View ArticleA tutorial on Fast Modulo Multiplication (Exponential Squaring)
Hello @all,This tutorial will cover the topic of Fast Modulo Multiplication (also known as Exponential Squaring or Repeated Squaring).This is a very useful technique to have under your arsenal as a...
View ArticlePlease support Kotlin for solving problems.
To me, Kotlin is a friendly and beautiful language. It would be nice if you could allow me use Kotlin to solve problems. I mean, CC already supports Kotlin in your IDE, then what's wrong with...
View Articlerating-drop after plagiarism
Will there be a fall in ratings after the plagiarism in July challenge, and if yes then till when that can be observed in one's account??
View ArticleMMSUM _ Can anyone check whats problem with my code ?
QuestionMySolution I tried to get the maximum sum and while searching for that obtaining its initial and final positions. Thanking you in advance.
View ArticleCHCUBE:Why am I getting wrong answer?
Hey, can someone tell me why I'm getting WA. My code:include"iostream"include"string.h"using namespace std; struct side {int pos; char col[10]; }c[6];int main() { int i,j; long int t=0; side s;...
View ArticleRRSUM - editorial
PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:Shiplu HawladerEditorialist:Praveen DhinwaDIFFICULTY:MediumPREREQUISITES:Simple Math.PROBLEM:Given N. Let A = {1, 2, , N} and B = {N + 1, , 2 *...
View ArticleTLE IN Gears
Can someone help me with the solution of gears? I used bfs and dfs in this question but got TLE. If this question use DSU then can you explain me how I can implement it
View Articlewhy my solution is wrong??
include<stdio.h>int main() { int t,i; scanf("%d",&t); for(i=0;i<t;i++) {="" long="" int="" a,b,c,x,y,max;="" scanf("%ld="" %ld="" %ld="" %ld="" %ld",&a,&b,&c,&x,&y);=""...
View Articlepython nzec error
Why am i getting nzec error in this coden=int(input()) a=[int(x) for x in input().split(" ")] b=0 for i in range(0,len(a)-1): for j in range(i+1,len(a)): b=b+abs(a[j]-a[i]) print(b)
View ArticleGCDSUM - Editorial
Problem LinkPracticeContestAuthor:Ivan FeketeTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASY-MEDIUMPrerequisitesGCD, Inclusion-exclusion, CountingProblemGiven a matrix of size $(N, M)$....
View ArticleTime for 12MonthsChallenge Codechef laddus to get credited!!
@admin i have successfully completed 100%Attendance challenge and its been over 1 month. I haven't received any notifications/laddu's from codechef. could you just tell me what is the approx duration...
View ArticleCan anyone help me with Heights of Students from TCS Mockvita 2018 Contest?
Hello friends can someone tell me how to approach this problem ?@vijju123@taran_1407@vivek_1998299@meooow@john_smith_3@aryanc403@vbt_95
View ArticleWESTAND Need help (DP hard)
I am trying to solve WESTAND problem from DEC-17 long Challenge. There is no editorial for this problem and the solutions submitted are not helping either. Can someone share their approach or share...
View Article