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

Getting wrong answer while submitting chef subarray

Can any one send the sample input and output format for chef sub array?

View Article


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


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

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

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


QPOINT - Editorial

PROBLEM LINK:PracticeContestAuthor:tuananh93Editorialist:liouzhou_101DIFFICULTY:HARDPREREQUISITES:Computational geometry, Point location, Scan line, Self-balancing binary search tree, Functional...

View Article

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

Chef and Functions

Getting TLE in chef and function....reasons???

View Article


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


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

string output problem

here is code https://ideone.com/HNqQhL . I want to know why "NO" is not coming in the output.

View Article

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

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


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

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


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

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


How to get my college-wise ranking and country-wise ranking?

Any link to get complete college-wise ranking and country-wise ranking!!!

View Article

Maxim and Progressions

is time limit too strict?? my O(n * 100 * 10) is getting TL.

View Article

Different results for compilers: (gcc 4.8.1) and gcc( 4.3.2)

Question Removed!

View Article
Browsing all 40121 articles
Browse latest View live


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