結果

問題 No.128 お年玉(1)
ユーザー ki_ki33ki_ki33
提出日時 2015-01-16 23:26:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 1,012 bytes
コンパイル時間 2,228 ms
コンパイル使用メモリ 75,324 KB
実行使用メモリ 58,108 KB
最終ジャッジ日時 2024-04-08 17:43:37
合計ジャッジ時間 6,475 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
57,576 KB
testcase_01 AC 137 ms
57,964 KB
testcase_02 AC 135 ms
57,560 KB
testcase_03 AC 140 ms
57,836 KB
testcase_04 AC 139 ms
57,576 KB
testcase_05 AC 142 ms
58,080 KB
testcase_06 AC 139 ms
58,108 KB
testcase_07 AC 138 ms
57,556 KB
testcase_08 AC 142 ms
57,844 KB
testcase_09 AC 140 ms
57,832 KB
testcase_10 AC 141 ms
58,076 KB
testcase_11 AC 137 ms
57,948 KB
testcase_12 AC 135 ms
57,852 KB
testcase_13 AC 136 ms
57,832 KB
testcase_14 AC 135 ms
57,840 KB
testcase_15 AC 133 ms
57,584 KB
testcase_16 AC 138 ms
57,832 KB
testcase_17 AC 138 ms
57,836 KB
testcase_18 AC 135 ms
57,596 KB
testcase_19 AC 136 ms
57,700 KB
testcase_20 AC 134 ms
56,116 KB
testcase_21 AC 134 ms
57,732 KB
testcase_22 AC 136 ms
57,820 KB
testcase_23 AC 138 ms
57,556 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