結果

問題 No.32 貯金箱の憂鬱
ユーザー irisAshirisAsh
提出日時 2017-08-11 16:45:21
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 79 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 44,324 KB
最終ジャッジ日時 2023-09-30 12:28:53
合計ジャッジ時間 3,136 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
42,140 KB
testcase_01 AC 77 ms
42,152 KB
testcase_02 AC 76 ms
42,144 KB
testcase_03 AC 77 ms
44,324 KB
testcase_04 AC 76 ms
42,260 KB
testcase_05 AC 76 ms
42,152 KB
testcase_06 AC 77 ms
42,152 KB
testcase_07 AC 76 ms
42,396 KB
testcase_08 AC 77 ms
42,288 KB
testcase_09 AC 77 ms
42,216 KB
testcase_10 AC 77 ms
42,160 KB
testcase_11 AC 78 ms
42,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let i = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n').slice(0, -1).map((e) => e-0)
i[1] += i[2] / 25 | 0
i[2] %= 25
i[0] += i[1] / 4 | 0
i[1] %= 4
i[0] %= 10
console.log(i.reduce((a,b) => a+b))
0