結果

問題 No.32 貯金箱の憂鬱
ユーザー mukaihajimemukaihajime
提出日時 2019-08-09 21:42:17
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 42,328 KB
最終ジャッジ日時 2023-09-30 13:34:46
合計ジャッジ時間 1,726 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
42,240 KB
testcase_01 AC 76 ms
42,280 KB
testcase_02 AC 75 ms
42,276 KB
testcase_03 AC 75 ms
42,172 KB
testcase_04 AC 75 ms
42,144 KB
testcase_05 AC 75 ms
42,124 KB
testcase_06 AC 77 ms
42,252 KB
testcase_07 AC 76 ms
42,092 KB
testcase_08 AC 76 ms
42,328 KB
testcase_09 AC 75 ms
42,140 KB
testcase_10 AC 74 ms
42,244 KB
testcase_11 AC 77 ms
42,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

c25 += ~~(c1/25);
c1 %= 25;
c100 += ~~(c25/4);
c25 %= 4;
c100 %= 10;

console.log(c1+ c25 + c100);
0