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 1636. Penalty Time

What is wrong with my code ?
Posted by Sepehr Mousavi 7 Jul 2009 01:29
First, i sent my solution in Pascal and i got WA2 and then i wrote it in C++ and i got Accepted. I want to know my mistake in my Pascal solution.

Here's my code in Pascal :

[code deleted]

Edited by moderator 17.11.2019 18:35
Re: What is wrong with my code ?
Posted by Avriskin[SESC USU] 20 Nov 2009 04:08
Sepehr Mousavi wrote 7 July 2009 01:29
         readln(n);

You should read, not readln.