ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1313. Some Words about Sport

Ok why doesn't this work?
Posted by Angel 12 Dec 2005 13:27
#include <fstream.h>
ifstream f("in.txt");
ofstream g("out.txt");
int main ()
{
int n,i;
f>>n;
for (i=1;i<=n*n;i++)
g<<i<<" ";
return 0;
}

I know it isn't what it should do, but still how can it get time limit exceeded??? I don't get it :)
Re: Ok why doesn't this work?
Posted by Burunduk1 12 Dec 2005 21:22
Don't read from the file and you will get your WA :)