結果
| 問題 | 
                            No.296 n度寝
                             | 
                    
| コンテスト | |
| ユーザー | 
                             spacenaut
                         | 
                    
| 提出日時 | 2016-05-22 15:53:23 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 373 bytes | 
| コンパイル時間 | 2,156 ms | 
| コンパイル使用メモリ | 74,288 KB | 
| 実行使用メモリ | 54,344 KB | 
| 最終ジャッジ日時 | 2024-10-06 20:33:02 | 
| 合計ジャッジ時間 | 4,461 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 8 | 
ソースコード
import java.util.*;
class No0296{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt() - 1;
		int h = sc.nextInt();
		int m = sc.nextInt();
		int t = sc.nextInt();
		for(int i = 0; i < n; i++){
			m += t;
		}
		if(m / 60 > 0){
			h = h + (m / 60);
			m = m % 60;
		}
		System.out.println(h);
		System.out.println(m);
	}
}
            
            
            
        
            
spacenaut