Coding contests >> Pascal competition
Posted by nonama on 12:23:00 03-11-2002
Task: solve penki+penki=desim or penki*2 = desimt

same letter means same number. there are 4 different answers. progam must show all of them.

How it works:
there are three strings.
number - first number, 'penki' in this case
result - result of * or +, 'desimt' in this case

Libraries:
any pascal libraries can be used.
asm is not wanted(you will not be diqualified, but dont use it).

you give me pascal prog that calls library. like: solve("penki","desimt");
i ask you for library. cuz it is not standart and looks like made by you. most of what you write must be in pascal.

You can use popular pascal libraries. like crt or something. but not do your own in asm to call them from pascal to solve all this.

Wins:
At the begining of the program curent time must be taken. At the end of it. Time taken to solve penki+penki=desimt must be shown.

Program that solves fastest, wins.

Deadline:
2002.05.01 00:00:00 in my timezone =)


aurimas




[ This Message was edited by: nonama on 2002-03-13 13:00 ]
Posted by nonama on 12:41:00 03-11-2002
for fsking pesimists who thinks that pascal lollipops. can offer their work in other lang C, PERL, PHP, Basic. If your c app will solve this exercize 30 faster then pascal app you will not take 1st place. =)
Posted by fsvara on 13:04:00 03-11-2002
lol, please look up "pes(s)imist" in a dictionary. you called me that repeatedly, and now you're saying "pessimists who think pascal lollipops...".. which doesn't make much sense, considering the meaning of "pessimist"
Posted by robost86 on 16:31:00 03-11-2002
We may used any library, and libraries can be written in asm... interesting..
Posted by nonama on 18:44:00 03-11-2002
listen. everything was writen in asm, in some level. so back off.
Posted by fsvara on 18:50:00 03-11-2002
that's not what robert was saying... by your rules, you can make a nice assembler libray, and use pascal only to call it
Posted by nonama on 18:18:00 03-12-2002
and you would fail.
i mean...

you give me pascal prog that calls library. like: solve("penki","desimt");
i ask you for library. i see pure asm in there. and i say: bad. you should not use asm for your own programing.

that means you can use popular pascal libraries. like crt or something. but not do your own in asm to call them from pascal to solve this thing.
Posted by robost86 on 18:33:00 03-12-2002
But that wasn't in the rules
Posted by fsvara on 19:22:00 03-12-2002
robert likes abusing rules, you must excuse him
Posted by robost86 on 06:54:00 03-13-2002
Rules are there for me to break, and everyone else to follow. Right? :-}
Posted by fsvara on 11:38:00 03-13-2002
rob_ert: yeah, scandisk the system! scandisk laws!
Posted by nonama on 13:03:00 03-13-2002
i changed rules a bit...

i love phpBB

x)
Posted by nonama on 16:01:00 04-03-2002
comp ended with no submitions. have a nice day all.