結果

問題 No.296 n度寝
ユーザー QtaroQtaro
提出日時 2016-04-27 17:38:05
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 7,962 ms
コンパイル使用メモリ 237,672 KB
実行使用メモリ 63,672 KB
最終ジャッジ日時 2023-09-12 00:30:45
合計ジャッジ時間 25,099 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 940 ms
63,068 KB
testcase_05 AC 973 ms
63,040 KB
testcase_06 AC 974 ms
63,288 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
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 % 60)
}
0