結果

問題 No.296 n度寝
ユーザー kaoetayakaoetaya
提出日時 2016-12-30 00:51:19
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 379 bytes
コンパイル時間 3,213 ms
コンパイル使用メモリ 71,836 KB
実行使用メモリ 58,160 KB
最終ジャッジ日時 2023-08-22 00:45:57
合計ジャッジ時間 6,364 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 124 ms
55,520 KB
testcase_04 AC 125 ms
55,732 KB
testcase_05 AC 124 ms
55,928 KB
testcase_06 AC 125 ms
55,840 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 125 ms
55,844 KB
testcase_11 AC 123 ms
55,668 KB
testcase_12 WA -
testcase_13 AC 125 ms
55,860 KB
testcase_14 AC 122 ms
55,828 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class pre {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
		
		int n = s.nextInt(),h = s.nextInt(),m = s.nextInt(),t = s.nextInt();
		int time = h * 60 + m;
		
		int count = 1;
		
		while(count < n){
			time = time + t;
			count++;
		}
		
		System.out.println(time/60);
		System.out.println(time%60);
    }
}
0