Search found 2 matches

by anubhavhcm
Tue Jan 24, 2012 2:55 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 44873

Re: Q 444, Time Limit Exceeded

any one plz help!!! :(
by anubhavhcm
Mon Jan 23, 2012 7:10 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 44873

Q 444, Time Limit Exceeded

I am getting "time limit exceeded". Plz help how can i reduce the runtime??? :(


#include<iostream>
#include<cstring>
#include<cstdlib>
using namespace std;

void decode(char msg[])
{
int len=strlen(msg),n;
char m;

for (int i=len-1;i>=0;i--)
{
n=0;
if (msg =='1')
{
n=(msg -'0')*100 + (msg ...

Go to advanced search