結果

問題 No.296 n度寝
ユーザー kenji_shioya
提出日時 2016-06-02 18:32:03
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 365 bytes
コンパイル時間 3,138 ms
コンパイル使用メモリ 74,000 KB
実行使用メモリ 54,268 KB
最終ジャッジ日時 2024-10-08 05:50:41
合計ジャッジ時間 6,221 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise50{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int h = sc.nextInt();
    int m = sc.nextInt();
    int t = sc.nextInt();

    int sum = t * (n - 1) + m;
    h += sum / 60;
    m = sum % 60;

    System.out.println(h);
    System.out.println(m);
  }
}
0