結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  8130Tsk | 
| 提出日時 | 2015-11-15 13:00:11 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 137 ms / 1,000 ms | 
| コード長 | 364 bytes | 
| コンパイル時間 | 4,149 ms | 
| コンパイル使用メモリ | 74,360 KB | 
| 実行使用メモリ | 41,596 KB | 
| 最終ジャッジ日時 | 2024-07-06 22:30:51 | 
| 合計ジャッジ時間 | 6,606 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
import java.util.Scanner;
public class No296 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		int t = sc.nextInt();
		int overTime = t*(n-1);
		h+=(overTime+m)/60;
		h%=24;
		m+=overTime;
		m%=60;
		
		System.out.println(h);
		System.out.println(m);
	}
}
            
            
            
        