結果

問題 No.296 n度寝
ユーザー yu_017yu_017
提出日時 2019-02-03 09:53:25
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 370 bytes
コンパイル時間 3,243 ms
コンパイル使用メモリ 73,660 KB
実行使用メモリ 41,584 KB
最終ジャッジ日時 2024-12-15 18:31:12
合計ジャッジ時間 5,583 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class A000296 {
	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();
		sc.close();
		int rh = h;
		int rm = m;
		rh+=((n-1)*t+m)/60;
		rm =((n-1)*t+m)%60;
		System.out.println(rh);
		System.out.println(rm);
	}
}
0