結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  💕💖💞 | 
| 提出日時 | 2016-09-11 00:22:54 | 
| 言語 | Go (1.23.4) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 488 bytes | 
| コンパイル時間 | 11,926 ms | 
| コンパイル使用メモリ | 240,032 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-07 02:50:13 | 
| 合計ジャッジ時間 | 12,634 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
package main
import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	_ "math"
)
func main() {
  scanner := bufio.NewScanner(os.Stdin)
	hold := []int{}
	for scanner.Scan() {
	 for _, t := range strings.Split(scanner.Text(), " " ) {
		  t_i, _ := strconv.Atoi(t)
			hold = append(hold, t_i)
		}
    break
  }
	N, H, M, T := hold[0], hold[1], hold[2], hold[3]
	Mtotal := 60 * H + M
	OverSleepTime := (N - 1)*T
	Mtotal += OverSleepTime
	fmt.Println( (Mtotal/60)%24 )
	fmt.Println(Mtotal%60)
}
            
            
            
        