結果

問題 No.128 お年玉(1)
ユーザー ki_ki33ki_ki33
提出日時 2015-01-16 23:26:53
言語 Java19
(openjdk 21)
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 1,012 bytes
コンパイル時間 4,064 ms
コンパイル使用メモリ 73,508 KB
実行使用メモリ 39,952 KB
最終ジャッジ日時 2023-07-24 14:34:40
合計ジャッジ時間 7,634 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
39,084 KB
testcase_01 AC 115 ms
39,496 KB
testcase_02 AC 116 ms
39,772 KB
testcase_03 AC 115 ms
39,360 KB
testcase_04 AC 115 ms
39,496 KB
testcase_05 AC 115 ms
39,532 KB
testcase_06 AC 117 ms
39,436 KB
testcase_07 AC 116 ms
39,292 KB
testcase_08 AC 114 ms
39,408 KB
testcase_09 AC 116 ms
39,120 KB
testcase_10 AC 118 ms
39,132 KB
testcase_11 AC 118 ms
39,952 KB
testcase_12 AC 119 ms
39,592 KB
testcase_13 AC 116 ms
39,352 KB
testcase_14 AC 117 ms
39,324 KB
testcase_15 AC 115 ms
39,116 KB
testcase_16 AC 116 ms
39,940 KB
testcase_17 AC 116 ms
39,424 KB
testcase_18 AC 114 ms
39,320 KB
testcase_19 AC 114 ms
39,548 KB
testcase_20 AC 114 ms
39,348 KB
testcase_21 AC 114 ms
39,332 KB
testcase_22 AC 113 ms
39,424 KB
testcase_23 AC 113 ms
39,388 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