結果

問題 No.1446 ハンバーグと納豆ごはん
ユーザー fukafukatanifukafukatani
提出日時 2021-06-21 23:28:43
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 13,790 ms
コンパイル使用メモリ 252,316 KB
実行使用メモリ 64,104 KB
最終ジャッジ日時 2023-09-05 02:00:30
合計ジャッジ時間 47,599 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 989 ms
63,036 KB
testcase_02 AC 1,003 ms
63,072 KB
testcase_03 WA -
testcase_04 AC 976 ms
62,992 KB
testcase_05 AC 974 ms
63,484 KB
testcase_06 AC 1,000 ms
63,120 KB
testcase_07 AC 1,002 ms
63,264 KB
testcase_08 AC 983 ms
63,040 KB
testcase_09 AC 992 ms
63,028 KB
testcase_10 WA -
testcase_11 AC 1,020 ms
62,980 KB
testcase_12 AC 984 ms
63,008 KB
testcase_13 AC 981 ms
62,980 KB
testcase_14 AC 995 ms
63,384 KB
testcase_15 AC 997 ms
63,156 KB
testcase_16 AC 1,003 ms
63,056 KB
testcase_17 AC 982 ms
62,996 KB
testcase_18 AC 982 ms
63,364 KB
testcase_19 AC 998 ms
63,124 KB
testcase_20 AC 1,005 ms
63,116 KB
testcase_21 AC 971 ms
63,456 KB
testcase_22 AC 972 ms
63,156 KB
testcase_23 AC 1,004 ms
63,192 KB
testcase_24 AC 993 ms
62,964 KB
testcase_25 AC 987 ms
63,308 KB
testcase_26 AC 972 ms
63,480 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 978 ms
63,376 KB
testcase_30 AC 959 ms
63,248 KB
testcase_31 AC 954 ms
63,184 KB
testcase_32 AC 988 ms
63,052 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 992 ms
63,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val a, b, n, m = sc.nextLong
  val set1 = Seq(a, b).min
  val a1 = a - set1
  val b1 = b - set1
  val ans = set1 + Seq(a1 / n, b1 / m).max
  println(ans)
}
0