10013
when i use pascal,i got TLE,
but C++,AC
it seem that fpc 's i/o is slow then C/C++
aren't i right?
or others?
FPC is very very slow!!!
Moderator: Board moderators
C++ vs Pascal
Every language has good and bad things, it depends in what you do in C++ and what you do in Pascal, some stuff is faster in pascal, other in c++. I guess this is not a real question, just a commentary from a bad experience
If you prefer C++, code in it!!!
![:)](./images/smilies/icon_smile.gif)
If you prefer C++, code in it!!!
-
- Experienced poster
- Posts: 109
- Joined: Sat Jun 23, 2007 9:53 pm
- Location: Brest, BELARUS
- Contact:
Re: FPC is very very slow!!!
I have noticed that in arithmetic problems C++ is really faster than Pascal.
For example, on my regional OI contest there was a arithmetic task with GCD, int64 and stuff like that. Algorithm (not fully correct solution) in Pascal would score 40 points out of 100, rest of tests will fail on time limit. Then I decided to write it on C++ and scored 75 points for it. One guy managed to get 80 out of 100.
For example, on my regional OI contest there was a arithmetic task with GCD, int64 and stuff like that. Algorithm (not fully correct solution) in Pascal would score 40 points out of 100, rest of tests will fail on time limit. Then I decided to write it on C++ and scored 75 points for it. One guy managed to get 80 out of 100.
Now I lay me down to sleep...
my profile
my profile