結果

問題 No.128 お年玉(1)
ユーザー ちよちゃん
提出日時 2016-05-20 17:08:47
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 689 bytes
コンパイル時間 3,454 ms
コンパイル使用メモリ 76,168 KB
実行使用メモリ 56,352 KB
最終ジャッジ日時 2024-10-01 10:19:59
合計ジャッジ時間 7,836 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Yuki11 {
	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		long m = scan.nextLong();
		
		System.out.println( "1番目=" + m * 1000 );
		System.out.println( "2番目=" + n / (m * 1000) );
		
		long ans = n / ( m * 1000 ) * 1000;
    	System.out.println(ans);
		
		/*
		final int thousand = 1000;
		
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		int m = scan.nextInt();
		scan.close();
		
	    if(n >= m*thousand && m > 0){
	    	System.out.println(thousand*(n/(m*thousand)));
	    }else{
	    	System.out.println(0);
	    }
	    */
		
	}
}
0