結果

問題 No.128 お年玉(1)
ユーザー ki_ki33ki_ki33
提出日時 2015-01-16 23:26:53
言語 Java19
(openjdk 19.0.1)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 1,012 bytes
コンパイル時間 1,481 ms
実行使用メモリ 37,620 KB
最終ジャッジ日時 2022-11-24 20:44:21
合計ジャッジ時間 4,601 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
37,380 KB
testcase_01 AC 77 ms
37,420 KB
testcase_02 AC 79 ms
37,360 KB
testcase_03 AC 78 ms
37,316 KB
testcase_04 AC 81 ms
37,392 KB
testcase_05 AC 79 ms
37,456 KB
testcase_06 AC 81 ms
37,436 KB
testcase_07 AC 88 ms
37,288 KB
testcase_08 AC 89 ms
37,252 KB
testcase_09 AC 88 ms
37,516 KB
testcase_10 AC 86 ms
37,608 KB
testcase_11 AC 88 ms
37,524 KB
testcase_12 AC 80 ms
37,388 KB
testcase_13 AC 84 ms
37,380 KB
testcase_14 AC 89 ms
37,620 KB
testcase_15 AC 77 ms
37,448 KB
testcase_16 AC 79 ms
37,480 KB
testcase_17 AC 78 ms
37,552 KB
testcase_18 AC 78 ms
37,328 KB
testcase_19 AC 80 ms
37,296 KB
testcase_20 AC 80 ms
37,540 KB
testcase_21 AC 79 ms
37,600 KB
testcase_22 AC 78 ms
37,344 KB
testcase_23 AC 75 ms
37,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedInputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
import java.util.Map.Entry;

public class Main {
	public static final int C =  1000000007;
	//static boolean MAP[][];
	static long N;
	static long M;
	static int MAX = -1;
	//static int tic[][];
	static int MAP[][];
	//static int max;
	static int DP[][][];
	static int ST[][];
	//static int p[];
	//static ArrayList<HashSet<Integer>> al;
	static TreeMap<Integer, ArrayList<Integer>> hm;
	//static ArrayList<Integer> al;
	//static int a[][];
	//static char[][] ch;
	//static ArrayList<HashMap<Long, Long>> al;
	//static String a[];
	//static String str;

	public static void main(String[] args) {
		StringBuilder sb = new StringBuilder();
		BufferedInputStream bs = new BufferedInputStream(System.in);
		Scanner sc = new Scanner(bs);
		
		N = sc.nextLong()/1000;
		M =sc.nextInt();
		

		
		
		
			
		
		long ans = N/M*1000;
		
		
		System.out.println(ans);


	}
	

	

}
0