結果

問題 No.296 n度寝
ユーザー mits58mits58
提出日時 2016-07-02 20:43:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 156 ms / 1,000 ms
コード長 346 bytes
コンパイル時間 4,064 ms
コンパイル使用メモリ 73,504 KB
実行使用メモリ 58,960 KB
最終ジャッジ日時 2023-09-21 08:27:40
合計ジャッジ時間 5,929 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 156 ms
58,960 KB
testcase_01 AC 154 ms
56,552 KB
testcase_02 AC 152 ms
56,792 KB
testcase_03 AC 153 ms
57,144 KB
testcase_04 AC 153 ms
57,200 KB
testcase_05 AC 155 ms
56,812 KB
testcase_06 AC 154 ms
57,132 KB
testcase_07 AC 153 ms
57,092 KB
testcase_08 AC 153 ms
56,844 KB
testcase_09 AC 155 ms
56,876 KB
testcase_10 AC 154 ms
56,980 KB
testcase_11 AC 155 ms
56,788 KB
testcase_12 AC 152 ms
56,524 KB
testcase_13 AC 154 ms
56,856 KB
testcase_14 AC 154 ms
56,592 KB
testcase_15 AC 155 ms
56,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			int n=sc.nextInt();
			int time=60*sc.nextInt()+sc.nextInt();
			int t=sc.nextInt();
			time+=(n-1)*t;
			time%=60*24;
			int h=time/60;
			int m=time%60;
			System.out.println(h+"\n"+m);
		}
	}
}
0