SIGSEGV error on codechef?
My code for problem code ROWCOLOP or http://ww2.codechef.com/status/ROWCOLOP is:#include<stdio.h> #include<string.h> int main() { long n,q; scanf("%ld %ld",&n,&q); char op[6]; long...
View Articlewhat's wrong with my code for matchsticks??
can anybody tell me what's wrong with mine code ...i tried to implement range min query algo. but i can't figure out what's wrong it seems correct to me...#include<cstdio>...
View ArticleActive participation poll
I was just curious to know how many people have solved how many questions at CodeChef . Since CodeChef does not give any participation rankings , I have created a poll . Participation ( number of...
View ArticleFTRIP - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESSimple MathPROBLEMIn your class of S students, N students are being selected to go on a trip. Your friend circle has M students in the class,...
View ArticleSimple Java Program compile errors getting
import java.io.*; class A { int c=0; int i[50]; int l; int j[50]; int n; int k; int P; public void EvenOdd() { for(n=1;n<=100;n++) { if(n%2==0) System.out.println(n); } } public void Prime() {...
View Articlewitmath :
I submitted my code in python of WITMATH during the contest and got AC. When i was submitting the same using C++ it was giving TLE though i had taken all steps to prevent overflow. Please can anyone...
View ArticleWITMATH - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESPrimality TestingPROBLEMGiven some N, find the i for which φ(i)/i is the largest among all 2≤i≤N.φ(i) is the Euler Totient Function.QUICK...
View ArticleJUNONGF TLE/WA
could ne1 please point out why m i getting TLE for this solution: http://ideone.com/IQGYPOand a WA for this solution: http://ideone.com/TZZjpd
View ArticleMSTICK - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESRange Minimum Query, Simple MathPROBLEMYou are given N matchsticks arranged in a straight line, with their rearends touching each other. You are...
View ArticleSPOJ HORRIBLE help
@ALL getting WA for the SPOJ HORRIBLE after implementing RMQ and couldn't striking any corner case needed a help SPOJ_HORRIBLE my solution solution
View ArticleQTREE - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYHARDPREREQUISITESGraph Theory, Segment Trees, Heavy Light DecompositionPROBLEMYou are given a connected graph on N vertices consisting of N edges.Each edge has a...
View ArticleCPP - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYHARDPREREQUISITESString Parsing, Predictive Parsing of an LL(1) Grammar, Regular ExpressionsPROBLEMYou are given a string which defines what an ID should look like...
View ArticleProblem with new ratings!
New ratings are not calculated as expected. Adding up gain to last score should be more while its lesser. Anybody else noticed the same?
View ArticleCHALENGE - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYCHALENGEPREREQUISITESAd-Hoc, Brute ForcePROBLEMYou are given N servers, out of which a vast majority are honeypots. You have to guess the passwords at these...
View ArticleTREE - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYPREREQUISITESKirchhoff's Matrix Tree Theorem, MathPROBLEMFind the number of Trees that contain k*n nodes, which are labeled from 0 to k*n-1, such thatThere is...
View ArticleSuffix Trees
Hello guys, is there a tutorial for implementation and applications of suffix tree data-structure ?? or some paper or any link that helps you understand ?? I couldn't find much of it !, And also are...
View ArticleNAME2 - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYCAKEWALKPREREQUISITESAd-HocPROBLEMGiven two strings, say A and B, find whether A is a sub-sequence of B, or whether B is a sub-sequence of A.A sub-sequence is...
View ArticleRegarding Date Time Picker control in dot net
Hi, I am designing a windows application which needs dates subtraction from date to end date and report should be generated. How to subtract two dates(format should be dd:mm:yy) by comparing the dates...
View ArticleError in these codes for linked list
#include<stdio.h> #include<conio.h> typedef struct linkedlist { int info; struct linkedlist *next; }node; void create(node *head); void insert_beg(node *head,int value); void...
View ArticleKINGCON - Editorial
PROBLEM LINK:PracticeContestAuthor:Jay PandyaTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:EASYPREREQUISITES:Biconnected componentsPROBLEM:Getting rid of the story line the problem simply...
View Article