結果

問題 No.32 貯金箱の憂鬱
ユーザー mukaihajime
提出日時 2019-08-09 21:24:08
言語 JavaScript
(node v23.5.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 41,324 KB
最終ジャッジ日時 2024-10-13 01:16:10
合計ジャッジ時間 1,366 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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


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