結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
kaoetaya
|
| 提出日時 | 2016-12-30 00:51:19 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 379 bytes |
| コンパイル時間 | 3,995 ms |
| コンパイル使用メモリ | 77,628 KB |
| 実行使用メモリ | 56,092 KB |
| 最終ジャッジ日時 | 2024-12-15 17:18:04 |
| 合計ジャッジ時間 | 5,514 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
ソースコード
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);
}
}
kaoetaya