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

Popular Rice recipe...Wrong Answer...

Can someone please tell me where I am going wrong.Thanks in advance. Following is the code:include <iostream>include <cstring>using namespace std;int main() { int t; //test case...

View Article


wich test case i didnt considrd ?

i ws trying this q. link text ,working on all test cases stil showing wrong ansr ..HELP !!!! using namespace std; int main() { unsigned long int t[100000],n,x,y,j,a,i,p; scanf("%u",&a); if(a>=1...

View Article


Bitwise 2014 - Prizes worth 50k!

Greetings from Bitwise 2014. The details regarding registration and schedule for Bitwise.Bitwise is an annual, time-constrained, algorithm - intensive online programming contest organised by the...

View Article

Wrong Answer for Clean up with Python code

Hi,I've tried debugging this code but I'm unable to realize why its failing. Could anyone suggest what the issue might be?Code:T=int(raw_input()) #1<=T<=50 n=0 #Total tasks to be completed m=0 #...

View Article

FCTRL time limit xceedd ..

how can i optimise my code such dat it dont xceed the time limit ..q. is fctrlinclude<iostream>include<stdio.h>include<stdlib.h>using namespace std; int fact(int n){ int i,x=0;...

View Article


Dividing grids in area?

I want to know the C coding for the following scenario - Consider An area 100* 100. Squares of side 20 each is taken and whole area is divided into 25 grids . Now we randomly place some marbles in the...

View Article

Different Output

Today,there was a coding round for internship in our collage.I wrote a code which was giving different output for same test case on ideone and Hackerrank.On ideone output was 4 and on hackerrank output...

View Article

getting wrong answer in little chef and numbers

code deleted

View Article


Little Chef and Numbers - runtime exception

I strongly believe the following is not against Cde of Conduct rules...I found that in PROSUM, there is a problem in input - line with N contains whitespaces, so in some cases, this can lead to runtime...

View Article


SIGABRT Runtime Error

What is this weird runtime error? FAQ says it occurs when STL elements try to store too much memory. In my code for MIKE3 (Mike and Stamps) I have only declared one global vector of the formvector<...

View Article

Testing a Java program

I had developed my solution to work as "java Main in.txtout.txt", however I am receiving a "Wrong answer" message when a submit my solution.In the FAQ I have found that I must test using java test <...

View Article

COCI 6, task FONT

hi guys, can someone pls explain what is asked on COCI 6 task FONT: http://hsin.hr/coci/contest6_tasks.pdfthanks beforehand

View Article

DRGHTS-Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey NaginTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:EasyPREREQUISITES:Depth first traversalPROBLEM:Given a forest with N nodes, where...

View Article


How to deal with huge data types

I am very noob in programming and since my school days, i used to work with integers only in C. Most of the problems here in CodeChef have testcases reaching to long long int values. I can think of the...

View Article

editorial not found

http://www.codechef.com/problems/REIGN editorial of this problem showing not found....y is it so??

View Article


I am new to Code chef, what books I need to read to understand the problem

Hi All, I do find difficult in understanding the problems as its based on Mathematics what books I need to go through before getting code chef pracatise exercise?Thanks Sridhar

View Article

Little chef and numbers

I am probably missing something in the corner cases. (As i am not regular to codechef). Do the test cases contain the data, outside the limits of the expected inputs (i.e. negative testcases). In such...

View Article


please help

please help me...

View Article

Just reevaluate MIKE3

for following test case my code http://www.codechef.com/viewsolution/3532424 gave wa but its accepted ....after some modification i resubmit a new code that give right ans and accepted.please check for...

View Article

Sorting large array of long long int

Hey guys, i'm working on a problem where I have to sort large array of long long int ( array size of nearly 1000000). I've tried to do it with merge sort as it has a complexity of O(n*log(n)) in worst...

View Article
Browsing all 39796 articles
Browse latest View live


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