Search found 4 matches

by SR7
Wed Nov 04, 2015 5:01 pm
Forum: Volume 114 (11400-11499)
Topic: 11475 - Extend to Palindrome
Replies: 32
Views: 13888

Re: 11475 - Extend to Palindrome WA!!

what's wrong with this?? i've tried a lot of I/O. help is appreciated.Thanks :wink: #include<bits/stdc++.h> #include<string.h> #include<stdlib.h> using namespace std; int palin(char s[]) { int len = strlen(s); int i,j; for(i=0,j=len-1; i<len/2; i++,j--){ if(s[i]!=s[j]) return 0; } return 1; } void r...
by SR7
Tue Sep 01, 2015 11:11 pm
Forum: Volume 129 (12900-12999)
Topic: 12938 - Just Another Easy Problem
Replies: 0
Views: 273

Re: 12938 - Just Another Easy Problem

WRONG ANSWER!?

plz help..

Code: Select all

hehe accepted :D btw no one replied -_-

by SR7
Sun Aug 16, 2015 10:27 am
Forum: Volume 110 (11000-11099)
Topic: 11063 - B2-Sequence
Replies: 73
Views: 40005

Re: WA!!!

plz help... I've tried with a lot of i/o....but couldn't fix what's wrong with this==> #include<stdio.h> int main() { int i,j,k,x,y,z,n,tc=0,ara[101],f; long sum[100000]; while(scanf("%d",&n)==1){ tc++; for(i=0; i<n; i++){ scanf("%d", &ara[i]); } f=0; for(i=1; i<n; i++){ if(ara[i]<=ara[i-1] || ara[i...
by SR7
Fri Aug 14, 2015 6:57 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31410

Re: 401 - Palindromes why RUNTIME Error!!!

plz help!!

accepted :lol:

Go to advanced search