Quantcast
Browsing all 39796 articles
Browse latest View live

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

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 Article


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


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

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

Why my rating for june long contest not being updated?

Why my rating for june long contest not being updated?

View Article

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

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


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

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


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

time limit in june guessing

//CODE DELETED why it always show time limit exceed i already check it is optimize

View Article


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

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

DP 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
Browsing all 39796 articles
Browse latest View live


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