Search found 2 matches

by someone
Sun Sep 05, 2004 9:38 am
Forum: Volume 102 (10200-10299)
Topic: 10282 - Babelfish
Replies: 48
Views: 27432

10282 TLE

ok, the code below is very simple, why do I get TLE for this

[cpp]#include <cstdio>
#include <map>
#include <string>
#include <iostream>
using namespace std;

map <string,string> rijecnik;
map <string,string>:: iterator iter;

char buffer[1000],ch[500],ch2[500];

int main ()
{
while (fgets(buffer ...
by someone
Mon Aug 30, 2004 9:04 am
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 77232

10055

why this don't work i get a WA
[cpp]#include <cstdio>
#include <string>
using namespace std;

char buffer[1000],a[500],b[500];

void uradi();

int main ()
{
while (fgets(buffer,1000,stdin))
{
sscanf(buffer,"%s%s",a,b);
uradi();
};
return 0;
};

void uradi ()
{
char chTemp[2];
int n,x=0;
n ...

Go to advanced search