結果

問題 No.296 n度寝
ユーザー QtaroQtaro
提出日時 2016-04-27 17:40:44
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 8,390 ms
コンパイル使用メモリ 244,600 KB
実行使用メモリ 64,100 KB
最終ジャッジ日時 2023-09-12 00:30:17
合計ジャッジ時間 26,484 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 978 ms
63,440 KB
testcase_04 AC 971 ms
63,216 KB
testcase_05 AC 981 ms
63,128 KB
testcase_06 AC 979 ms
62,872 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 985 ms
64,100 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 954 ms
62,916 KB
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n,h,m,t = sc.nextInt

  println((h + (n - 1) * t / 60) % 24)
  println((n - 1) * t + m % 60)
}
0