結果

問題 No.296 n度寝
ユーザー QtaroQtaro
提出日時 2016-04-27 17:54:26
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 8,636 ms
コンパイル使用メモリ 255,416 KB
実行使用メモリ 64,012 KB
最終ジャッジ日時 2023-09-12 00:32:19
合計ジャッジ時間 24,691 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 955 ms
63,040 KB
testcase_04 AC 973 ms
62,768 KB
testcase_05 AC 982 ms
63,032 KB
testcase_06 AC 983 ms
62,852 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 946 ms
62,836 KB
testcase_10 WA -
testcase_11 AC 952 ms
62,700 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 957 ms
62,952 KB
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 + (t % 60 + m) / 60) % 24)
  println((n - 1) * (t % 60 + m) % 60)
}
0