Skip to content

Commit

Permalink
Problema: 3377
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlucena committed Aug 16, 2024
1 parent e0cb4ee commit 677d9b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/3300/3377.poti
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ enquanto s <> "S" faça
delta = se reta(x-1) >= y ou reta(x) <= y então
abs(reta(x - 0.5) - y)
senão
a = (x - y / alfa) / 2
a * ()
(a - 0.5) * (y - reta(x-1)) +
(y / alfa - x + 1) / 2 * (y - reta(x-1)) +
(x - y / alfa) / 2 * (reta(x) - y)
fim
area := area + delta
Expand Down

0 comments on commit 677d9b8

Please sign in to comment.