結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
Torin3600
|
| 提出日時 | 2016-04-22 01:04:18 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 577 bytes |
| コンパイル時間 | 3,123 ms |
| コンパイル使用メモリ | 74,428 KB |
| 実行使用メモリ | 50,576 KB |
| 最終ジャッジ日時 | 2024-10-04 14:36:27 |
| 合計ジャッジ時間 | 4,363 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 16 |
ソースコード
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]);
}
}
Torin3600