ENG
RUS
Timus 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
1502
. Domino Dots
Wrong answer!!! Help pls
Posted by
Levchuk_vs16
1 Nov 2017 19:21
var
n:integer;
s:real;
begin
read(n);
s:=(n+2)*((n+1)*n)/2;
write(s);
end.
Re: Wrong answer!!! Help pls
Posted by
antoniu200
23 Jun 2019 16:26
Use "longint" and not "integer" or "real".
© 2000–2024
Timus Online Judge Team
. All rights reserved.