結果

問題 No.32 貯金箱の憂鬱
ユーザー jcm_2jcm_2
提出日時 2019-08-11 23:04:14
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 305 bytes
コンパイル時間 29 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 42,344 KB
最終ジャッジ日時 2023-09-30 13:34:54
合計ジャッジ時間 1,627 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,244 KB
testcase_01 AC 77 ms
42,344 KB
testcase_02 AC 80 ms
42,248 KB
testcase_03 AC 78 ms
42,280 KB
testcase_04 AC 76 ms
42,192 KB
testcase_05 AC 76 ms
42,092 KB
testcase_06 AC 75 ms
42,156 KB
testcase_07 AC 76 ms
42,152 KB
testcase_08 AC 75 ms
42,148 KB
testcase_09 AC 75 ms
42,340 KB
testcase_10 AC 75 ms
42,304 KB
testcase_11 AC 75 ms
42,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  const data = input.split("\n")
  let count = 0
  let L = Number(data[0]), M = Number(data[1]), N = Number(data[2])
  M += ~~(N / 25)
  count += N % 25
  L += ~~(M / 4)
  count += M % 4
  count += L % 10
  console.log(count)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))
0