結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-10 15:18:02 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 363 bytes |
| コンパイル時間 | 2,112 ms |
| コンパイル使用メモリ | 74,004 KB |
| 実行使用メモリ | 54,208 KB |
| 最終ジャッジ日時 | 2024-10-13 13:08:34 |
| 合計ジャッジ時間 | 4,462 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 3 |
ソースコード
import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
int h = sc.nextInt();
int m = sc.nextInt();
int t = sc.nextInt();
int time = (n-1)*t;
h += time/60;
m += time%60;
if (m==60) {h++; m=0;}
System.out.println(h%24);
System.out.println(m);
}
}
Tsukasa_Type