Search found 4 matches

by hiddenhopes
Thu Jul 07, 2016 3:14 pm
Forum: Volume 111 (11100-11199)
Topic: 11151 - Longest Palindrome
Replies: 65
Views: 43144

Re: 11151 - Longest Palindrome

why am i getting wrong answer every time? check n help me plz.



#include<bits/stdc++.h>
using namespace std;
int a[1002][1002];
int main(){
int t, i, j, l;
char s[1005],r[1005];
freopen("in.txt","r",stdin);
freopen("out.txt","w",stdout);

scanf("%d\n", &t);
while(t--){
gets(s);
l = strlen ...
by hiddenhopes
Fri Nov 06, 2015 8:15 pm
Forum: Volume 127 (12700-12799)
Topic: 12779 - The Largest Circle
Replies: 0
Views: 3463

Re: 12779 - The Largest Circle

help me with some critical test cases... i am getting wrong answer... dont know why..
by hiddenhopes
Fri Oct 23, 2015 8:41 am
Forum: Volume 106 (10600-10699)
Topic: 10683 - The decadary watch
Replies: 35
Views: 19443

Re: 10683 - The decadary watch

little problem int the sample output.
i think the out put "9999999" should be replaced by "9999998" ,so that there will be no confusion about using double or integer.
by hiddenhopes
Tue Aug 18, 2015 10:00 am
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 33611

Re: 191-why getting wrong answer

#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
using namespace std;

int direction(int xi,int yi, int xj,int yj, int xk,int yk){
return (xk-xi)*(yj-yi)-(xj-xi)*(yk-yi);
}

int intersect(int x1,int y1,int x2,int y2,int x3,int y3,int x4,int y4){
int d1,d2,d3,d4,x;
d1 ...

Go to advanced search