結果

問題 No.296 n度寝
ユーザー QtaroQtaro
提出日時 2016-04-27 17:44:54
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 8,074 ms
コンパイル使用メモリ 243,292 KB
実行使用メモリ 64,232 KB
最終ジャッジ日時 2023-09-12 00:31:37
合計ジャッジ時間 25,818 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 956 ms
62,648 KB
testcase_04 AC 937 ms
62,840 KB
testcase_05 AC 940 ms
64,232 KB
testcase_06 AC 922 ms
63,108 KB
testcase_07 AC 938 ms
62,928 KB
testcase_08 AC 934 ms
62,884 KB
testcase_09 WA -
testcase_10 AC 944 ms
62,748 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 945 ms
63,804 KB
testcase_14 AC 952 ms
62,880 KB
testcase_15 AC 935 ms
63,140 KB
権限があれば一括ダウンロードができます

ソースコード

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 + m % 60)
}
0