FPC is very very slow!!!

Write here if you have problems with your Pascal source code

Moderator: Board moderators

Post Reply
tzzx
New poster
Posts: 14
Joined: Thu May 15, 2003 6:29 am

FPC is very very slow!!!

Post by tzzx »

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?
ACoimbra
New poster
Posts: 14
Joined: Thu Apr 10, 2003 1:59 pm
Location: Coimbra, Portugal
Contact:

C++ vs Pascal

Post by ACoimbra »

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!!!
raymond85
New poster
Posts: 21
Joined: Tue Jul 01, 2003 9:26 am
Location: Hong Kong
Contact:

Post by raymond85 »

Yea, it's definetly slower...
For the problem Prime Ring Problem, I AC-ed with a time of 9.17 seconds. With the same algorithm, my friend rewrote my program into C++ and result n 1.3 seconds.
fpnc
System administrator
Posts: 201
Joined: Sun Oct 07, 2001 2:00 am
Location: Valladolid, Spain

Post by fpnc »

any other idea apart from crying out how bad fpc is?
Best regards,

Fernando N
raymond85
New poster
Posts: 21
Joined: Tue Jul 01, 2003 9:26 am
Location: Hong Kong
Contact:

Post by raymond85 »

So... I would say...hmm... I prefer pascal since I started to write a program with it first. It's easier for me to code with it. Anyways, I agree that every programming languages have their advantages and disadvantages.
veron
New poster
Posts: 29
Joined: Tue Jun 03, 2003 6:38 pm

Post by veron »

yah,I am also agree with you.I am also like pascal language.It also have advantages and disadvantages.

But it is a good choice for programming.
Numinos
New poster
Posts: 2
Joined: Sun Oct 05, 2003 3:58 pm

Post by Numinos »

I think, Pascal is the right coice if you want to develope a good algo. If it's to slow I will write it in C++ again. But if you write in C++ first, you'll need lots of comments :)
andysoft
Experienced poster
Posts: 109
Joined: Sat Jun 23, 2007 9:53 pm
Location: Brest, BELARUS
Contact:

Re: FPC is very very slow!!!

Post by andysoft »

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.
Now I lay me down to sleep...
my profile
Post Reply

Return to “Pascal”