結果
問題 | No.128 お年玉(1) |
ユーザー |
![]() |
提出日時 | 2015-01-16 23:26:53 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 134 ms / 5,000 ms |
コード長 | 1,012 bytes |
コンパイル時間 | 2,192 ms |
コンパイル使用メモリ | 75,324 KB |
実行使用メモリ | 54,212 KB |
最終ジャッジ日時 | 2024-10-01 09:43:05 |
合計ジャッジ時間 | 5,810 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
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);}}