Search found 1 match

by mahfuzsust001
Sat Dec 10, 2011 7:29 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 38929

483 TLE

Where is my mistake, I cant find it.. MY code is here......
#include <stdio.h>
#include <string.h>

int main()
{
char str[90000];
int i,j,t,len;
while(gets(str))
{
t=0;
len = strlen(str);
for(i=0;i<=len;i++)
{
if(str ==' ' || i==len)
{
for(j=i-1;j>=t;j--) printf("%c",str[j]);
printf("%c ...

Go to advanced search