Advertisement
Spocoman

Voleyball

Oct 14th, 2024
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.30 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6.     var year string
  7.     fmt.Scanln(&year)
  8.    
  9.     var p, h float64
  10.     fmt.Scanln(&p)
  11.     fmt.Scanln(&h)
  12.    
  13.     game := ((48 - h) * 3 / 4) + h + p * 2 / 3
  14.  
  15.     if year == "leap" {
  16.         game *= 1.15
  17.     }
  18.  
  19.     fmt.Println(int(game))
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement