結果

問題 No.32 貯金箱の憂鬱
コンテスト
ユーザー rustGanbaruman
提出日時 2026-02-09 14:48:59
言語 Rust
(1.93.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 263 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,275 ms
コンパイル使用メモリ 196,696 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-02-09 14:49:03
合計ジャッジ時間 3,084 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use proconio::input;

fn main(){
  input!{
    mut hand:usize,
    mut twenty:usize,
    mut one:usize,
  }
  let mut count =0;
  twenty += one / 25;
  count += one % 25;
  hand += twenty / 4;
  count += twenty % 4;
  count += hand % 10;
  println!("{}",count);
}
0