結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2018-06-22 17:19:30 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 133 ms / 1,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 2,540 ms |
コンパイル使用メモリ | 74,200 KB |
実行使用メモリ | 54,308 KB |
最終ジャッジ日時 | 2024-06-30 18:00:56 |
合計ジャッジ時間 | 4,964 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
import java.util.Scanner; public class Main{ public static void main(String[] args) { Main main=new Main(); main.run(); } void run() { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int H=sc.nextInt(); int M=sc.nextInt(); int T=sc.nextInt(); int time=(N-1)*T; int res=H*60+M+time; System.out.println((res/60)%24); System.out.println(res%60); } }