CLMBSTRS - Editorial
Problem Link:PracticeContestDifficulty:SimplePre-requisites:CombinatoricsProblem:Given a staircase of N stairs, in how many different ways can you reach the top, assuming you can climb one or two...
View ArticleANUGCD - Editorial
PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Segment Tree, FactorizePROBLEM:Given N numbers in a sequence, answer M...
View ArticleWALK prob WA
I tried solving the WALK problem using the editorial but I am getting WA. Kindly tell me the error :)www.codechef.com/viewsolution/3649113
View ArticleATOMS easy prob WA
It's been days,I've been stuck on this problem.ATOMSI'm marking common elements out first and then elements left in each set.I've tried many test cases.But still WA.Please help!#include<cstdio>...
View ArticleW/A IN COUNT OF MAX (EASY) MAXCOUNT
include<stdio.h>int main() { int i, t, n;scanf("%d", &t); while (t--) { int a[10010], max = 0, ctr = 0, pos=0, k, x; scanf("%d", &n); for (i = 0; i < 10010; i++) a[i] = 0; for (i = 0;...
View Articlewa chef and cake
i have tried for many test cases my output is correct but it is showing waalso do the test cases include this type of input :20 20 1 130 30 11 11my code:...
View Articleparameter passing in function
include<stdio.h>int main() { int i=5; printf("%d %d %d %d %d",i++,i--,++i,--i,i); return 0; } It's giving a output 4 5 5 5 5,but it should be 4 5 5 4 5.Why is this happening?
View ArticlePlease help !!! SIGSEGV in TCFST10
I don't know why I am getting SIGSEGV in this problem. I checked other people's code and my logic is correct. To check why I am getting SIGSEGV, I tried all possible things I could.I even submitted...
View ArticleGETTING WA IN IITWPC4D
The problem link is : http://www.spoj.com/problems/IITWPC4D/The solution link is : https://ideone.com/fAfVTLI have tested my code for over 100 testcases and i found my code is working fine but still i...
View ArticleA programming contest, purely in mathematical domain
HackerRank is organising first of such kind of contest. Just check out this link https://www.hackerrank.com/infinitum-mar14
View ArticleAdjacency Matrix compression
Hi all,I am currently working on some graph projects with a friend, and I would like to know if there is anyway to reduce the size taken by adjacency matrixes to save as many memory as possible.I am...
View ArticleSIGSEGV error in Team Split -plz help
i think this error is due to this statement.... int s[3000000]; plz help how to allocate this size array...
View ArticleWA in LEADGAME
http://www.codechef.com/viewsolution/3651481I am getting Wrong Answer in LEADGAME. What have I missed out?
View ArticleEnormous Input Test ( INTEST)
here is a link of my solution...http://www.codechef.com/viewsolution/3651260when i am running this code on ideone.com it is giving count of divisible number by k actual count + 1 ....means if ans is...
View ArticleHow to solve this question?
Raju and Rani and playing games in the school. Raju has recently learned how to draw angles. He knows how to draw some angles. He also can add/subtract any of the two angles he draws. Rani now wants to...
View ArticleSEASORT2 - Editorial
PROBLEM LINK:PracticeContestAuthor:Sergey NaginTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:ChallengePREREQUISITES:Heuristic, Greedy, Mixure of Methods, Test Generation PlansPROBLEM:Sort a...
View ArticleCHEATING : 7 exactly same solution for MIKE3
Here is a list of 7 exactly same solutions made by different users for the problem MIKE3, asked in...
View ArticleHow to calculate memory usage of a program?
I am implementing a online judge in python. The judge is to run on a UNIX machine. To enforce memory limits I am using ulimit and to run a program I am using subprocess.Popen() . I want to calculate...
View ArticleSSTORY - Editorial
PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Suffix Array, Suffix Automaton, Binary Search, HashPROBLEM:Find the longest...
View ArticleMAXCOUNT - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis was supposed to be a problem that anyone who knows basic programming could solve and I'm glad that it's satisfied our expectations.For the...
View Article