結果

問題 No.296 n度寝
ユーザー FVRChanFVRChan
提出日時 2017-09-30 10:22:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 1,805 ms
コンパイル使用メモリ 74,284 KB
実行使用メモリ 41,512 KB
最終ジャッジ日時 2024-04-27 16:48:19
合計ジャッジ時間 4,065 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 95 ms
40,052 KB
testcase_04 AC 101 ms
40,828 KB
testcase_05 AC 98 ms
40,632 KB
testcase_06 AC 106 ms
41,052 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 108 ms
41,344 KB
testcase_11 AC 106 ms
41,084 KB
testcase_12 WA -
testcase_13 AC 106 ms
40,984 KB
testcase_14 AC 94 ms
41,324 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