結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-10-02 23:46:50 | 
| 言語 | JavaScript (node v23.5.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 67 ms / 5,000 ms | 
| コード長 | 426 bytes | 
| コンパイル時間 | 183 ms | 
| コンパイル使用メモリ | 7,068 KB | 
| 実行使用メモリ | 41,328 KB | 
| 最終ジャッジ日時 | 2024-07-23 07:16:59 | 
| 合計ジャッジ時間 | 2,496 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
function Main(input) {
  input = input.split('\n');
  let K = 0;
  let L = parseInt(input[0]);
  let M = parseInt(input[1]);
  let N = parseInt(input[2]);
  if (N >= 25) {
    M += Math.floor(N / 25);
    N %= 25;
  }
  if (M >= 4) {
    L += Math.floor(M / 4);
    M %= 4;
  }
  if (L >= 10) {
    K += Math.floor(L / 10);
    L %= 10;
  }
  console.log(L + M + N);
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
            
            
            
        