string 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
include <stdio.h>int main () { int t,n,m; scanf ("%d",&t); for (int i = 0; i < t; i++) { scanf ("%d %d",&n,&m); int a,b,num,den; a = n % 2; if (a==0) { if (i==t-1) { printf("1/2");...
View Articlegetting NZEC error in java
//CODE DELETED I am getting NZEC error in the following code for "forgot password question" july challenge, not able to identify the error, any help would be appreciated.
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 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 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 ArticleWhy my rating for june long contest not being updated?
Why my rating for june long contest not being updated?
View ArticleCollege Users
I want to know the users of my college that are on Codechef. How can I get to know their names and handles?
View Articleadvantage of using assert in program
i want to know that some programmer use assert in their program , is there any advantage of using assert while running the program on judge where all the constraints are defined and are guaranteed that...
View ArticleLOWSUM - Getting TLE! How to speed up?
I was trying to implement the solution by following the editorial.http://discuss.codechef.com/questions/29659/lowsum-editorialI am still getting a TLE. What am I missing?#include<stdio.h>...
View ArticleHelp on Fast input/output
can someone explain me what's fast input/output. I m sorta new to this stuff and would really appreciate some help. Thank you.
View ArticleCOMPILER - Editorial
PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:AD-HOC PROBLEM:Given a bracket sequence, print the length of largest prefix...
View Articletime limit in june guessing
//CODE DELETED why it always show time limit exceed i already check it is optimize
View ArticleWhich algo can be used for this problem. need solution to this.
You want to cut a piece of paper by a certain fixed rule to make some pieces of white or blue colored square paper with various sizes. If the size of the entire paper is N×N (N = 2^K; 1 ≤ K ≤ 7; K =...
View Articleneed help with MARBLEGF, fully line-by-line commented code included
I have the link to fully commented code. It passes the sample input, but is incorrect. It's only 60 lines of code and straightforward. Each line is commented....
View ArticleDP in LEBALONS, help needed, anyone?
I cross checked it with the tester's solution on some test cases.Can somebody tell me why is it a WA.What is wrong in the DP for this question.I have posted this question for quite a long time, no...
View Article