結果
| 問題 |
No.32 貯金箱の憂鬱
|
| ユーザー |
ctkt
|
| 提出日時 | 2022-10-18 14:15:36 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 575 bytes |
| コンパイル時間 | 52 ms |
| コンパイル使用メモリ | 6,812 KB |
| 実行使用メモリ | 41,468 KB |
| 最終ジャッジ日時 | 2024-06-28 22:31:23 |
| 合計ジャッジ時間 | 2,957 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 11 |
ソースコード
// inputに入力データ全体が入る
function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
input = input.split("\n");
let y100=Number(input[0]);
let y25=Number(input[1]);
let y1=Number(input[2]);
while(y1>=25){
y25+=Math.floor(y1/25);
y1=y1%25;
}
while(y25>=4){
y100+=Math.floor(y25/4);
y25=y25%4;
}
console.log(y100+y25+y1);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
ctkt