結果
問題 | No.70 睡眠の重要性! |
ユーザー |
![]() |
提出日時 | 2024-10-30 19:56:00 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 11,456 ms |
コンパイル使用メモリ | 227,200 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-30 19:56:12 |
合計ジャッジ時間 | 12,163 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 6 |
ソースコード
package mainimport . "fmt"import "time"func main() {var n intScan(&n)d:=0*time.Minuteconst f="15:04"for ;n>0;n-- {var s,t stringScan(&s,&t)a,_:=time.Parse(f,s)b,_:=time.Parse(f,t)if b.Compare(a)<= 0 {b=b.AddDate(0,0,1)}d+=b.Sub(a)}Println(int64(d.Minutes()))}