Getting wrong answer while submitting chef subarray
Can any one send the sample input and output format for chef sub array?
View ArticleWA in spoj BUGLIFE. Bipartite graph
Problem link: http://www.spoj.com/problems/BUGLIFE/My solution: Using bfs: http://ideone.com/IKJO4U Using dfs: http://ideone.com/F9NXIeIts a bipartite graph problem. I am using two numbers to color the...
View ArticleANUMFS - Editorial
PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:CHALLENGE PROBLEM:It is an interactive judge problem. You have a search area defined by n...
View ArticleCHALENGE - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYCHALENGEPREREQUISITESAd-Hoc, Brute ForcePROBLEMYou are given N servers, out of which a vast majority are honeypots. You have to guess the passwords at these...
View ArticleMINESWPR - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYCHALLENGEPREREQUISITESAd HocPROBLEMHurray to Codechef hosting its first Interactive Challenge!The classic game of Mine Sweeper is presented with a twist. On a grid...
View ArticleQPOINT - Editorial
PROBLEM LINK:PracticeContestAuthor:tuananh93Editorialist:liouzhou_101DIFFICULTY:HARDPREREQUISITES:Computational geometry, Point location, Scan line, Self-balancing binary search tree, Functional...
View Articlesereja and arcs
I have implemented an 2N^2logN solution for this problem which obviously giving TLE. I just want to know will an O(NlogN) solution is enough for this problem or do I need fast IO too?
View ArticleMaxim and Progressions
wrote an O(n^2) algorithm...but repeatedly getting TLE....can anyone please confirm whether this problem demands even better solution or not?
View ArticleWA in TIDRICE
#include<iostream> #include<vector> #include<algorithm> using namespace std; class user { public: string id; char vote; }; class test{ public: int n,net; user u[100]; }; bool...
View Articlestring output problem
here is code https://ideone.com/HNqQhL . I want to know why "NO" is not coming in the output.
View ArticleShows wrong Answer for Guessing Game problem
//CODE DELETED I wrote the above code, i solved it mathematically and then came out to the conclusion that we do not need gcd for this question if we frame it like this. Anyone can help...?Compile this...
View ArticleHow is Time calculated for a program.
Does the time required by my program also includes the pre-computation part. Obviously I do it before any inputs.
View Articlegetting NZEC error in java
import java.util.Scanner;class JuneChallenge {static void decipher() { Scanner scanner = new Scanner(System.in); int testCases = scanner.nextInt(); int decipherRules = 0, count = 0, start = 0; char...
View ArticleAny resource for learning ........ type questions?
.......PS: I am aware of the fact that LEBLOCKS problem in this months long challenge has got things related to the problem i have, in case you feel answering this question might violate any rules of...
View ArticleMaxim and Progressions - One Clarification
Before attempting to code, I have one question that needs clarification. "In other words, sequence s can be obtained from the a by deleting some elements." Is "some" here necessary? In other words, are...
View ArticleCompiler and Parsers
Why my code says WA i cannot get. Please Helpimport java.io.*; class Compiler { static String a[]; static int pos; public static void main(String args[])throws Exception { BufferedReader br=new...
View ArticleHow to get my college-wise ranking and country-wise ranking?
Any link to get complete college-wise ranking and country-wise ranking!!!
View Article