mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
180 B
14 lines
180 B
5 years ago
|
package main
|
||
|
|
||
|
func Halfcontest(h1, m1, h2, m2 int) int {
|
||
|
t1 := h1*60 + m1
|
||
|
t2 := h2*60 + m2
|
||
|
t2 = (t2 + t1) / 2
|
||
|
h2 = t2 / 60
|
||
|
m2 = t2 % 60
|
||
|
return h2*100 + m2
|
||
|
}
|
||
|
|
||
|
func main() {
|
||
|
}
|