結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
FVRChan
|
| 提出日時 | 2017-09-30 10:24:44 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 146 ms / 1,000 ms |
| コード長 | 379 bytes |
| コンパイル時間 | 2,096 ms |
| コンパイル使用メモリ | 74,508 KB |
| 実行使用メモリ | 54,096 KB |
| 最終ジャッジ日時 | 2024-11-15 20:38:09 |
| 合計ジャッジ時間 | 5,027 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.util.Scanner;
public class Main{
private static Scanner sc=new Scanner(System.in);
public static void main(String args[])throws Exception{
int n=sc.nextInt(),h=sc.nextInt(),m=sc.nextInt(),t=sc.nextInt();
for(int i=0;i<n-1;i++){
m+=t;
while(m>=60){
h++;m-=60;
}while(h>=24){
h-=24;
}
}
System.out.println(h);
System.out.println(m);
}
}
FVRChan