結果

問題 No.32 貯金箱の憂鬱
ユーザー 37zigen
提出日時 2016-04-01 15:54:42
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 322 bytes
コンパイル時間 2,062 ms
コンパイル使用メモリ 74,656 KB
実行使用メモリ 41,576 KB
最終ジャッジ日時 2024-07-23 02:17:06
合計ジャッジ時間 4,291 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder032;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int l=sc.nextInt();//100
		int m=sc.nextInt();//25
		int n=sc.nextInt();//1
		m+=n/25;
		n-=n/25*25;
		
		l+=m/4;
		m-=m/4*4;
		l-=l/10*10;
		System.out.println(l+m+n);
	}
}
0