mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-12 22:55:19 +08:00
53 lines
741 B
Go
53 lines
741 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
type question1736 struct {
|
|
para1736
|
|
ans1736
|
|
}
|
|
|
|
// para 是参数
|
|
// one 代表第一个参数
|
|
type para1736 struct {
|
|
time string
|
|
}
|
|
|
|
// ans 是答案
|
|
// one 代表第一个答案
|
|
type ans1736 struct {
|
|
one string
|
|
}
|
|
|
|
func Test_Problem1736(t *testing.T) {
|
|
|
|
qs := []question1736{
|
|
|
|
{
|
|
para1736{"2?:?0"},
|
|
ans1736{"23:50"},
|
|
},
|
|
|
|
{
|
|
para1736{"0?:3?"},
|
|
ans1736{"09:39"},
|
|
},
|
|
|
|
{
|
|
para1736{"1?:22"},
|
|
ans1736{"19:22"},
|
|
},
|
|
}
|
|
|
|
fmt.Printf("------------------------Leetcode Problem 1736------------------------\n")
|
|
|
|
for _, q := range qs {
|
|
_, p := q.ans1736, q.para1736
|
|
fmt.Printf("【input】:%v 【output】:%v\n", p, maximumTime(p.time))
|
|
}
|
|
fmt.Printf("\n\n\n")
|
|
}
|