結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-23 21:13:39 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 1,000 ms |
| + 249µs | |
| コード長 | 384 bytes |
| 記録 | |
| コンパイル時間 | 2,393 ms |
| コンパイル使用メモリ | 85,400 KB |
| 実行使用メモリ | 45,244 KB |
| 最終ジャッジ日時 | 2026-09-22 00:22:37 |
| 合計ジャッジ時間 | 4,629 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.util.Scanner;
public class No296 {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] x = new int[4];
for (int i = 0 ; i< x.length ; i++)
x[i] = sc.nextInt();
x[2] = x[2] + ((x[0] - 1) * x[3]);
x[1] = (x[2] / 60) + x[1];
x[1] %= 24;
x[2] %= 60;
System.out.println(x[1]);
System.out.println(x[2]);
sc.close();
}
}