結果

問題 No.296 n度寝
ユーザー Mcpu3
提出日時 2018-06-21 23:27:53
言語 Java
(openjdk 23)
結果
AC  
実行時間 157 ms / 1,000 ms
コード長 295 bytes
コンパイル時間 2,174 ms
コンパイル使用メモリ 76,376 KB
実行使用メモリ 55,136 KB
最終ジャッジ日時 2024-06-30 17:46:28
合計ジャッジ時間 5,202 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no296{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int n,h,m,t;
		n=stdIn.nextInt();
		h=stdIn.nextInt();
		m=stdIn.nextInt();
		t=stdIn.nextInt();
		h=h*60+m+t*--n;
		System.out.print(h/60%24+"\n"+h%60);
	}
}
0