Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 39796 articles
Browse latest View live
↧

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 Article


runtime error in CHEFBM

Can somebody tell why I am getting run time error(SIGSEGV) My soln:-http://www.codechef.com/viewsolution/3966627

View Article


TANDC - 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 Article

Something 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 Article

WRONG ANSWER: PRIME1.Where did i go wrong?

/*prime1 using hashing*/ #include<stdio.h> int main(void) { int...

View Article


Why 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 Article

Why 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 Article

getchar_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 Article


Some 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 Article


Directi 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 Article

Online 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 Article

Image may be NSFW.
Clik here to view.

TSORT: Whenever I try to run this code on my PC, it says TSORT.exe has...

View Article

doubt 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 Article


codechef 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 Article

wa 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 Article


Image may be NSFW.
Clik here to view.

Technex'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 Article

Who 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 Article


new 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 Article

HAREJUMP - 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 Article

A 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
Browsing all 39796 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>