結果

問題 No.296 n度寝
ユーザー 8130Tsk
提出日時 2015-11-15 12:45:11
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 3,430 ms
コンパイル使用メモリ 74,288 KB
実行使用メモリ 56,144 KB
最終ジャッジ日時 2024-09-13 15:00:00
合計ジャッジ時間 6,240 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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/60;
		h%=24;
		m+=overTime;
		m%=60;
		
		System.out.println(h);
		System.out.println(m);				
	}
}
0