TERBO SORT
#include<stdio.h> int main(){ long int i,j,t,arr[1000000]; int k; scanf("%ld",&t); for(i=0;i<t;i++) scanf("%ld",&arr[i]); for(i=0;i<(t-1);i++) { k=0; for(j=0;j<(t-1-i);j++) {...
View Articleruntime errror in python
print("Enter two Numbers\n") a = int(raw_input('A=')) b = int(raw_input('B=')) c=a+b print ('C= %s' %c) this code is giving runtime error in python ..i tried it like 100 times on ideone.com
View ArticleRESQ - Editorial
PROBLEM LINKS:PracticeContestDIFFICULTY:SimplePREREQUISITES:Math, Prime FactorizationPROBLEM:The aim is to find two numbers x and y such that x * y = N and |y – x| is as small as...
View ArticleWhy are my getting the wrong answer?
I don't know why I'm getting a wrong answer for "The Morning Commute". It works on all of the examples they provided. Please help me!The Problem: http://www.codechef.com/problems/COMMUTEMy Code:...
View ArticleWA on FIRESC
I'm trying to solve http://www.codechef.com/problems/FIRESC/ problem. Im using bfs as opposed to dfs unlike the editorial. Can someone please help me find where im going wrong? This is my solution...
View ArticleCheating in December Long-DECORATE
These 2 submissions seem to be identical.@admin do have a look at it. PS:Both are in the top 20 .http://www.codechef.com/viewsolution/3095229http://www.codechef.com/viewsolution/3068078
View ArticleConfusion regarding time limit
One of my code on ideone gives 0.11 seconds. (Java code using biginteger class), but here on codechef gives TLe. I m bit confused regarding this, please can someone sort this.
View ArticleCROWD - Getting Wrong Answer
The Problem is Three is Crowd. Link is http://www.codechef.com/problems/CROWD My code is include <iostream>include <iomanip>define ll unsigned long longdefine mod 1000000007using namespace...
View ArticleAnagram--Can you tel me what is the problem in my code?When i submit it shows...
My solution is herehttp://www.codechef.com/viewsolution/3243203
View ArticleGenerating Test Cases
I want to set a problem(its my first time), but I have no idea to generate test cases and what a Test Generation Plan is? I would like to learn it in detail ( While answering, please remember that its...
View ArticleFastest way to check the number of nodes reachable from source node
I was doing a problem which involved finding number of reachable nodes from a source node. I implemented this via dfs. I was wondering whether this was the fastest way to check or whether there was any...
View ArticleUsing online compiler .
I generally use online compiler Ideone.com and i am always very careful to make the codes private.Yesterday i was doing the same, made the codes private and then compiled the codes but today i found...
View Articleproblem regarding dynamic programming
Dynamic Programming where i found myself somewhat lagging. Please do tell where should i start and how to proceed.
View ArticleGetting runtime error not able to understand?
#include<stdio.h> #define max 100002 long int start[max],end[max],k[max],n,tmp[max],temp1[max],temp2[max],temp3[max]; long int mergesort(long int arr1[],long int arr2[],long int arr3[],long int...
View ArticleTwo similar codes (almost ), one getting RUNTIME error & the other got AC
first i submitted using vector (i have done this earlier in other problems successfully :) ) but got runtime error & same code i submitted using structure(everything was same except i stored the...
View ArticleAny prize of contest winning?
When anyone win long or short contest, is there any prize for that?
View ArticleMTRICK - TLE (python)
Here's the link to my solution : http://www.codechef.com/viewsolution/3243656 i saw some accepted solutions which were the same except that they used O(n^2) techniques for reversing. I can't get why I...
View ArticleRuntime Error: Cleaning Up (CLEANUP)
Hi coders, I was trying my hands on clean up problem and getting runtime error. I am new to python and don't know much about the functioning of it. May be that's why I am getting a runtime error as...
View ArticleHow to check answers online?
First of all sorry , if such questions are not allowed here and if such questions are allowed then please help me.I am trying to write a Java code which will take source file in C , C++ and Java and...
View ArticleFactorial- FCTL. my code gives TLE. bt it runs fine on ideone for the given...
I checked the code in my computer also for different inputs. enter code here #include<stdio.h> #include<iostream> #include<math.h> #include<map> using namespace std; int main()...
View Article