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

wap in c# for the following question.

wap to identify the occurrence of 3 consecutive integer in n numbers and replace them with middle value by deleting the other two

View Article


String addition

Can someone please tell how to add two strings indexwise without using the loop method?What i mean is: if I have string A; where A is of length 4 and values: '1', '12', '12', '10' ans string b; where b...

View Article


runtime error in chef jumping

hi...i submitted my code in c language written in codeblocks. But it is showing runtime error.what should i do?

View Article

how bob is winning???(NUMGAME 2)

can u explain me how BOB is winning when N=7; accrding to me-first chance: bob would take out from N prime number 5..ie..(N-5)so new N is 2. second chance: alice would take out 1 and would certainly...

View Article

Two Sat Problem

Two SatIn this problem we must solve the satisfiability of logical formulas which consist of two propositions, without denying or denied joined by OR. There are also several of these formulas, consider...

View Article


Chef -Jumping

Can anyone tell me input in chef-jumping "a" is must be given static or it can be taken from user using scanf or something..coz I dont know how code chef's script run the program and directly give...

View Article

Chef Jumping

Getting NZEC error... Working in C... http://www.codechef.com/viewsolution/3865381 Any help??

View Article

Runtime Error

Please explain Why i get SIGSEGV error and give some tips to remove SIGSEGV error from the code.

View Article


little elephant and balloons doubt

What should we print for 0/0 case? For example consider this case:12 41 21 5here number of possible subsets are zero and total cost is also zero.

View Article


Doubt regarding TLE & Wrong answer

First when I submitted a code I got wrong answer, but when I changed slightly and resubmitted then I got TLE .I am sure that this code can not go to infinite loop after changing. So what might be the...

View Article

Time limit exceeded in Ojumps

I am getting TLE.Can anyone give idea on how to optimize?

View Article

Little Elephant and Balloons

could you please explain the 2nd test case of LEBALONS problem ?2 1 1 42 7output : 7.333333333

View Article

Little Elephant and balloons

Does the probability of every subset would be same or it can vary due to same color of balloons?? example :13 11 22 32 4subsets are : {1}{2}{2} {1,2} {1,2} {2,2} {1,2,2} so the probability of each...

View Article


dynamic memory allocation in case of arrays

Hi, does codechef allows dynamic memory allocation of arrays ? I'm new to it , so please anyone help.

View Article

over flow in FUNAGP

As limits of R is [1,10^9], so even (S+2D)*R^2 has the chance of integer over flow if R is 10^9 (long long int in c). So do we have to do (% 1000000007) each time? And is it required to print an empty...

View Article


judge not working ???

My solution submission page is just showing running image for 20 minutes. I have checked the My Submissions tab too..

View Article

runtime error in stones

Runtime Error(SIGSEGV). how to fix it??

View Article


Compiler and parsers

Should the sequence always begin with "<" Is the answer to the input ><> 0 or 2?

View Article

Modulo 10^9 +7

Why are we ask to take modulo 10^9 + 7 (1000000007) in many problems? What is the arithmetic logic behind it can anyone clear it out?Thanks!

View Article

Why this nput works in TEST problem

I was going through practice and saw that following when entered as TEXT was accepted as successful submission. Is it Bug or something else. Enter the following as TEXT instead of other language from...

View Article
Browsing all 40121 articles
Browse latest View live