結果

問題 No.388 階段 (1)
ユーザー samesame
提出日時 2020-02-16 14:31:44
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,115 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 10,160 ms
コンパイル使用メモリ 256,136 KB
実行使用メモリ 63,644 KB
最終ジャッジ日時 2024-04-16 03:34:40
合計ジャッジ時間 27,531 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,023 ms
63,512 KB
testcase_01 AC 1,033 ms
63,476 KB
testcase_02 AC 1,017 ms
63,332 KB
testcase_03 AC 1,017 ms
63,536 KB
testcase_04 AC 1,009 ms
63,412 KB
testcase_05 AC 1,019 ms
63,336 KB
testcase_06 AC 1,011 ms
63,520 KB
testcase_07 AC 1,023 ms
63,332 KB
testcase_08 AC 1,022 ms
63,608 KB
testcase_09 AC 1,024 ms
63,200 KB
testcase_10 AC 1,018 ms
63,616 KB
testcase_11 AC 1,032 ms
63,356 KB
testcase_12 AC 1,017 ms
63,516 KB
testcase_13 AC 1,115 ms
63,644 KB
testcase_14 AC 1,015 ms
63,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object No388 extends App {
  val sc = new Scanner(System.in)
  val s = sc.nextInt()
  val f = sc.nextInt()
  println(calc(s, f))

  def calc(s: Int, f: Int): Int = (s + f) / f
}
0