結果

問題 No.296 n度寝
ユーザー tubo28
提出日時 2015-11-13 21:05:43
言語 Java
(openjdk 23)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 430 bytes
コンパイル時間 2,142 ms
コンパイル使用メモリ 74,740 KB
実行使用メモリ 41,564 KB
最終ジャッジ日時 2024-07-06 22:28:28
合計ジャッジ時間 4,521 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

package testJava;

import java.util.*;
public class Main {
	public static void main(String [] args){
		try {(new Main()).run();} catch(Exception e){}
	}
	static Scanner cin;
	void run() {
		cin = new Scanner(System.in);
		int N = cin.nextInt();
		int H = cin.nextInt();
		int M = cin.nextInt();
		int T = cin.nextInt();
		M += (N-1) * T;
		H += M / 60;
		M %= 60;
		H %= 24;
		System.out.println(H);
		System.out.println(M);
	}
}
0