結果

問題 No.296 n度寝
ユーザー FVRChanFVRChan
提出日時 2017-09-30 10:22:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 1,990 ms
コンパイル使用メモリ 71,464 KB
実行使用メモリ 57,988 KB
最終ジャッジ日時 2023-08-09 22:30:23
合計ジャッジ時間 5,155 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 125 ms
55,692 KB
testcase_04 AC 125 ms
55,348 KB
testcase_05 AC 126 ms
55,684 KB
testcase_06 AC 128 ms
55,836 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 126 ms
55,456 KB
testcase_11 AC 129 ms
55,580 KB
testcase_12 WA -
testcase_13 AC 126 ms
55,880 KB
testcase_14 AC 125 ms
55,448 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		int n=sc.nextInt(),h=sc.nextInt(),m=sc.nextInt(),t=sc.nextInt();
		for(int i=0;i<n-1;i++){
			m+=t;
			if(m>=60){
				m-=60;h++;
			}
		}
		System.out.println(h);
		System.out.println(m);
	}
}
0