結果

問題 No.32 貯金箱の憂鬱
ユーザー mukaihajimemukaihajime
提出日時 2019-08-09 15:11:52
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 32 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 41,708 KB
最終ジャッジ日時 2024-04-21 02:51:52
合計ジャッジ時間 1,453 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
38,784 KB
testcase_01 AC 57 ms
38,528 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 61 ms
38,784 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

const row = require('fs').readFileSync('/dev/stdin','utf8').split('\n');
let l = Number(row[0]);
let m = Number(row[1]);
let n = Number(row[2]);
let o = 0;

if(l >= 25) {
    l = l%25;
    m = m + ~~(l/25)
}

if(m*25 >= 100) {
    n = n + ~~(m*25/100);
    m =(m*25) % 100;
}

if(n*100 >= 1000) {
    n = (n*100) % 1000/100;
}
console.log(l + m + n);
0