結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2015-11-07 23:33:22 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 137 ms / 5,000 ms |
コード長 | 514 bytes |
コンパイル時間 | 2,200 ms |
コンパイル使用メモリ | 75,300 KB |
実行使用メモリ | 54,404 KB |
最終ジャッジ日時 | 2024-07-23 02:11:41 |
合計ジャッジ時間 | 4,431 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int l = Integer.parseInt(scanner.next()); int m = Integer.parseInt(scanner.next()); int n = Integer.parseInt(scanner.next()); int total = ((l * 100) + (m * 25) + n); int count = 0; count += (total % 1000) / 100; count += (total % 100) / 25; count += (total % 25); System.out.println(count); } }