結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
yu_017
|
| 提出日時 | 2019-02-03 09:55:17 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 1,000 ms |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 4,480 ms |
| コンパイル使用メモリ | 81,932 KB |
| 実行使用メモリ | 42,848 KB |
| 最終ジャッジ日時 | 2026-05-26 03:04:14 |
| 合計ジャッジ時間 | 5,610 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.util.Scanner;
public class A000296 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int h = sc.nextInt();
int m = sc.nextInt();
int t = sc.nextInt();
sc.close();
int rh = h;
int rm = m;
rh+=((n-1)*t+m)/60;
rm =((n-1)*t+m)%60;
System.out.println(rh%24);
System.out.println(rm);
}
}
yu_017