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

0 1 kanpsack

hey why is that my code gives wrong answer ...:(//knapsack problem #include<cstdio> #include<iostream> int main() { int t,a,j,i,k,l,W; printf("enter the amount of the items\n");...

View Article


fatal error

i am using borland turbo c++ and getting error " prog.cpp:1:24: fatal error: iostream.h: No such file or directory # include ^ compilation terminated. " plz....help the program is running fine on my...

View Article


Image may be NSFW.
Clik here to view.

TAPAIR - Editorial

PROBLEM LINK:PracticeContestAuthor:Tuan Anh Tran DangTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:HardPREREQUISITES:DFS orderPROBLEM:Given an undirected simple graph with N nodes and M...

View Article

CODELIVE-2014

why I cannot register for CODELIVE-2014 now? I have solved 2 problems at this contest, but I cannot submit my solution. please help me...

View Article

CodeLive 2014- A contest of writing wrong codes

So, I was doing this contest called CodeLive. 1. There is no information regarding who is organizing this contest. What is the prize money etc. 2. This contest is about writing wrong codes. How? Test...

View Article


scanf and gets

please provide me link for the reason of the problem when we use scanf and gets simultaneously...

View Article

ORDERAAM - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Abdullah Al MahmudEditorialist:Vinod ReddyDIFFICULTY:HARD. PREREQUISITES:Flow,GreedyPROBLEM:We are given orders of the form (Si,Di,Xi,Pi) where Si...

View Article

Image may be NSFW.
Clik here to view.

METEORAK - Editorial

PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:MahbubEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic ProgrammingPROBLEM:Given a N * M matrix mat with some obstacles inside,...

View Article


What are the compiler options that the judge uses?

Some languages are weirdly slow on some problems. Do they have optimization enabled/disabled while compiling? Does the online judge use any specific options while compiling my program? Is there a way...

View Article


Runtime Errore

Runtime Error(SIGABRT) : what is the meaning of this ?

View Article

i'm using c++4.9.9.2 how should i submit my solution??

while submitting there are no option of compiler similar to mine so my submissions does not compile and hence are giving compilation error.here's one of my...

View Article

pattern matching in LZW COMPRESSED TEXT

can anyone please tell me how to match pattern in Lempel-Ziv-Welch compressed text without decompressing the file???

View Article

C++ Graph implementation as a data structure

Hello, what is the best implementation of a Graph as a data structure in C++? Thank you :)

View Article


why i am getting runtime error(NZEC)

this is my code.. http://www.codechef.com/viewsolution/3406448

View Article

How to initialize same variable in multiple files in C++

I'm having a problem. I have two header files (a.h, b.h) and three cpp files (main.cpp, a.cpp, b.cpp) and I'm trying to initialize the same ten variables in each one, and I'm lost. How do I go about...

View Article


TLE with memset()

i am not able to figure out why i got TLE with memset in http://www.codechef.com/FEB14/problems/LCPESY .However , on replacing memset(..., 0 , 256) by for(i=0;i<256;i++) i got AC .What is the reason ?

View Article

WA IN PRIME1

Why this code http://ideone.com/3puswp giving RTE for this question.. http://www.codechef.com/problems/PRIME1/I implemented using segmented seive.

View Article


CHSEQ22-Editorial

PROBLEM LINK:PracticeContestAuthor:Roman FurkoTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:Easy-MediumPREREQUISITES:Connected componentsPROBLEM:We are given an array of N...

View Article

Good books on advanced data structures?

Please suggest me some good books on advanced data structures like segment trees and binary interval trees.Thank you.

View Article

Online Programming contest - Algorythmus 2014.

Synapse 2014 (Cultural Fest of DA-IICT) presents "Algorythmus 2014". It will be an ACM-ICPC style online programming contest.(1) Contest will be of 3 hours. There will be 5 problems of varying...

View Article
Browsing all 39796 articles
Browse latest View live


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