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

spoj: help

i have started doing SPOJ but there solutions of the problems are not available so please tell me where can i get them as i want to solve the problems which i am unable to solve....

View Article


ATM compiler c4.3.2

#include<stdio.h> int main() { float x; int y; scanf(%d",&y); scanf("%f",&x); if(y%5==0&&(x-y)>0.5) printf("%0.2f",(x-(y+0.5))); else if(y%5!=0&&(x-y)>0.5)...

View Article


How can I store very very large integers accurately?

How to store large integers accurately?

View Article

Artificial Intelligence, Heuristics Challenge by IIIT Hyderabad

Threads 2k14 presents "Strange Loop", a new genre of AI and combinatorial search contests. It will contain challenges from puzzles like Sudoku, Kakuro, Rubik's Cube, and games like Reversi, for you to...

View Article

WA in SPOJ: PLD

Here is this spoj Problemhttp://www.spoj.com/problems/PLD/i am using manacher's algorithm for finding palindromic substring but getting WA, can somebody tell where i am wrong?Here is link to my...

View Article


Java - compilation problem

Hello coders (especially Java coders),it seems that even when we have Java 7 available for submissions, code is compiled with Java 6.I found it when submitted code using diamond...

View Article

SEAGRP finding the existence of perfect matching in a graph using Havel-Hakimi

I tried following strategy (though I never got it correct though later on applied on the edmond blossoms algorithm) for the problem SEAGRP in January Long Challenge 2014. Can anybody point out why is...

View Article

What are the units of code size of my submissions?

What are the units of code size of my submissions? I can see 2.2 M or 2.6M or 177M like that. Can you please tell me what are the units of these size and what how much they are in...

View Article


Count of maximum

why is the following showing wrong answer on codechef though it gives the correct answer for the test cases provided and several other cases that i fed into the program. Here is the...

View Article


Cake Walk

Can you guys help me in calculating this -(x^y)%cwhere 1<=x,y<=10000000001<=c<=1000000000I think it is just cakewalk for u guys :P

View Article

runtime error

How to resolve the segmentation fault runtime error? I am getting it again and again despite making changes to my code. This in reference to the last question of the practice problems....

View Article

bytelandian coins runtym error...help

include<iostream>using namespace std;int coin[500000000];int main() { long long int n,a,b,c; long long int d; coin[1]=1; coin[0]=0; cin>>n; if (n<=500000000) { for(int i=2;i<=n;++i) {...

View Article

Generating Test Cases

I want to set a problem(its my first time), but I have no idea to generate test cases and what a Test Generation Plan is? I would like to learn it in detail ( While answering, please remember that its...

View Article


wa in galactik football

getting WA constantly.here my code http://www.codechef.com/viewsolution/3265861

View Article

Just an idea on faster publication of editorials

Just saying...if the authors of the problems on long/short contests submit an explanation along with the problems there wouldn't be any delays. It'd be great if their explanation included the following...

View Article


Why wrong answer for Transform the Expression problem?

Here is my code for Transform the Expression problem :-#include<stdio.h> #include<stdlib.h> int prior(char ch) { if(ch == '+') { return 1; } else if(ch == '-') { return 2; } else if(ch ==...

View Article

How to check answers online?

First of all sorry , if such questions are not allowed here and if such questions are allowed then please help me.I am trying to write a Java code which will take source file in C , C++ and Java and...

View Article


Wrong answer in LEBOMBS

#include<stdio.h> #include<string.h> int n,i,t,count; char s[10056]; int main() { scanf("%d",&t); while(t--) { scanf("%d",&n); scanf("%s",s); getchar(); count=0; for(i=0;i<n;i++)...

View Article

PREPARE - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYMEDIUMEXPLANATIONPerhaps the simplest approach is to use binary search problem coupled with a dynamic programming subroutine. Given a value T, we can determine if...

View Article

Image may be NSFW.
Clik here to view.

Write a c program

Ex 1. A restaurant’s Menu is divided into following sub-headings : 1) Starters 2) Soups 3) Main Course 4) Rice 5) Breads 6) Beverages 7) Deserts…etc. Write a user friendly menu driven program which has...

View Article
Browsing all 39796 articles
Browse latest View live


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