getting TLE for subtask-1 and got AC for subtask-2 &3
for the DIVSUBS problem(DIVSUBS) i am getting TLE for subtask-1 (range of input is 1<=n<=15), but for subtask-2 (range of input is 1<=n<=1000) and subtask-3 (range of input is...
View Articleruntime error in CHEFBM
Can somebody tell why I am getting run time error(SIGSEGV) My soln:-http://www.codechef.com/viewsolution/3966627
View ArticleTANDC - Editorial
Problem link : contestpracticeDifficulty : Easy-MediumPre-requisites : Modular ArithmeticProblem : Find the maximal K that Mk divides an integer, obtained by the rules described in the problem...
View ArticleSomething Fishy about my code
This problem is about the most basic segment tree ,i guess that's what i've been told ,i'm trying to learn seg trees so please help me ,dont read and go away *In problem GSS1...
View ArticleWRONG ANSWER: PRIME1.Where did i go wrong?
/*prime1 using hashing*/ #include<stdio.h> int main(void) { int...
View ArticleWhy wrong answer? Works fine for all values on dev c++
include<stdio.h>int main() { int i,t; int a[100]; double q; double factorial(int m); scanf("%d",&t); for(i=0;i<t;i++) { scanf("%d",&a[i]); } for(i=0;i<t;i++) { q=factorial(a[i]);...
View ArticleWhy do I get sigsegv in TSORT when i write my array as arr[10^6],and get AC...
The program ran properly on my computer when i used arr[10^6], but when i submitted it to the online judge i got sigsegv, i changed arr[10^6] to arr[1000000] and the program got accepted. I dont...
View Articlegetchar_unlocked()
Hey every1, i see every1 uses getchar_unlocked()for accepting 2 space separated integers. Can any1 please tell me how this function works and how to use it(detailed) because i dont know anything bout...
View ArticleSome More Homework - Wrong Answer
For the problem Some More Homework, Why am I getting wrong answer? I have implemented in Java. Here is the code:import java.io.BufferedReader; import java.io.InputStreamReader; import...
View ArticleDirecti internship question
http://www.codechef.com/INTERN11/problems/INTRN01please tell me if it is a adhoc based question or we need to know certain things beforehand to solve it?
View ArticleOnline practice questions on java I/O and concurrency?
I am a beginner in java and I am looking for some online questions to practice on Java I/O(File operations) and concurrency(threads). Please suggest some online links to work out? TIA..
View Articledoubt in strcpy() function in c
i wrote the following program to convert postfix to infix expression.. /postfix to infix.working/#include<stdio.h> #include<string.h> #include<ctype.h> struct s { char arr[40][50];...
View Articlecodechef BUY1 GET1 problem
I am very much frustrated now..Please tell me what's wrong with my code? http://www.codechef.com/viewsolution/3969611 Its working fine on my lappy,but codechef is showing error.:-(
View Articlewa in spoj problem BST
Can someone please point out why the code giving WA for this problem http://www.spoj.com/problems/BST/I have just calculated height of nodes : http://ideone.com/WhPKUe
View ArticleTechnex'14 and FireEye, Inc. present Matheletics [prizes not dispatched even...
Matheletics is a mathematical contest (inspired from PROJECT EULER) where a sound knowledge of mathematics together with computational thinking will be essential to solve problems. The motivation...
View ArticleWho knows how to build an online community?
I am searching for an online community programmer to build the next generation of facebook. My idea is revolutionary. It would require the skills of a programmer that has SEO skills. A partnership...
View Articlenew helper
Hello everyone! I have started writing blogs on data structures and algorithms. Please take a view of my first post:http://sanugupta.wordpress.com/2014/06/03/getting-started-with-linked-list/Guys I am...
View ArticleHAREJUMP - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThe question requires some Mathematics and the whole system can be seen as State Transitions. The number of ways to reach a state(X) is equal to...
View ArticleA needle in the haystack
Could any one tell me how to terminate the program in this problem http://www.spoj.com/problems/NHAY/
View Article