結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2017-09-30 10:22:22 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 2,166 ms |
コンパイル使用メモリ | 74,004 KB |
実行使用メモリ | 55,620 KB |
最終ジャッジ日時 | 2024-11-15 20:38:03 |
合計ジャッジ時間 | 5,269 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 8 |
ソースコード
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; if(m>=60){ m-=60;h++; } } System.out.println(h); System.out.println(m); } }