Page 1 of 1
FPC is very very slow!!!
Posted: Thu May 29, 2003 4:56 am
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?
C++ vs Pascal
Posted: Sat Jun 14, 2003 11:24 am
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!!!
Posted: Wed Jul 02, 2003 8:14 pm
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.
Posted: Tue Jul 08, 2003 10:17 pm
by fpnc
any other idea apart from crying out how bad fpc is?
Posted: Sat Jul 12, 2003 12:09 pm
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.
Posted: Thu Aug 14, 2003 3:42 pm
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.
Posted: Sun Oct 05, 2003 4:19 pm
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

Re: FPC is very very slow!!!
Posted: Fri Apr 04, 2008 10:48 pm
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.