Can anybody tell me, how can I get rid if time limit exceed about this problem ??
This is my code..
#include<stdio.h>
#include<string.h>
char res[2500];
int toint(char ch)
{
return (ch-'0');
}
char tochar(int c)
{
return (c+'0');
}
void reverse(char s[])
{
int i,j;
for(i=0,j=strlen(s)-1;i ...
Search found 2 matches
- Wed Aug 05, 2009 7:04 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 60553
- Thu Apr 09, 2009 2:01 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 102403
why wrong answer????
Can anybody plz tell me whats wrong with my code????I didnt find anything wrong with output.But why wrong answer???
#include<stdio.h>
#include<string.h>
int toint(char s);
long addstr(char s[],char t[]);
int main(void)
{
char s[100];
char t[100];
int i;
long result;
while(scanf("%s %s",s,t ...
#include<stdio.h>
#include<string.h>
int toint(char s);
long addstr(char s[],char t[]);
int main(void)
{
char s[100];
char t[100];
int i;
long result;
while(scanf("%s %s",s,t ...