結果

問題 No.296 n度寝
ユーザー Torin3600Torin3600
提出日時 2016-04-22 01:04:18
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 577 bytes
コンパイル時間 3,415 ms
コンパイル使用メモリ 74,564 KB
実行使用メモリ 52,204 KB
最終ジャッジ日時 2024-04-15 03:58:41
合計ジャッジ時間 5,296 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Sample01 {
	public static void main(String[] args) throws IOException{
	int[] x;
	x= new int[4];

	BufferedReader num =new BufferedReader(new InputStreamReader(System.in));
	for(int i = 0; i < 4; i++){
		String n = num.readLine();
		x[i]= Integer.parseInt(n);
		}
	for(int w = 0; w < x[0] - 1; w++){
		x[2] += x[3];
	}
		while(x[2] > 59){
			x[1]++;
			if(x[1] > 23){
				x[1] = 0;
			}
			x[2] = x[2] - 60;
		}
	System.out.println(x[1]);
	System.out.println(x[2]);
	}
}
0