結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2017-05-22 14:43:03 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 316 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-09-19 09:45:48 |
合計ジャッジ時間 | 1,899 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
L=gets.to_i M=gets.to_i N=gets.to_i def ryougae(x,y,z) total = x + y * 25 + z * 100 s4 = (total / 1000).to_i s3 = ((total % 1000) / 100).to_i s2 = (((total % 1000) % 100) / 25).to_i s1 = (((total % 1000) % 100) % 25).to_i return s4 + s3 + s2 + s1 end puts ryougae(N,M,L)