結果

問題 No.128 お年玉(1)
ユーザー wreulickewreulicke
提出日時 2015-10-04 06:41:59
言語 Java19
(openjdk 21)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 383 bytes
コンパイル時間 3,327 ms
コンパイル使用メモリ 71,224 KB
実行使用メモリ 49,348 KB
最終ジャッジ日時 2023-07-24 14:58:52
合計ジャッジ時間 5,524 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,000 KB
testcase_01 AC 43 ms
49,284 KB
testcase_02 AC 42 ms
49,324 KB
testcase_03 AC 43 ms
49,208 KB
testcase_04 AC 43 ms
48,928 KB
testcase_05 AC 43 ms
49,088 KB
testcase_06 AC 42 ms
49,304 KB
testcase_07 AC 43 ms
49,216 KB
testcase_08 AC 43 ms
49,244 KB
testcase_09 AC 43 ms
49,348 KB
testcase_10 AC 43 ms
49,156 KB
testcase_11 AC 43 ms
49,012 KB
testcase_12 AC 43 ms
49,076 KB
testcase_13 AC 43 ms
49,016 KB
testcase_14 AC 43 ms
49,220 KB
testcase_15 AC 43 ms
49,248 KB
testcase_16 AC 43 ms
49,116 KB
testcase_17 AC 43 ms
49,232 KB
testcase_18 AC 43 ms
49,136 KB
testcase_19 AC 43 ms
49,004 KB
testcase_20 AC 44 ms
49,252 KB
testcase_21 AC 44 ms
49,020 KB
testcase_22 AC 43 ms
49,236 KB
testcase_23 AC 43 ms
49,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

public class Test{
  public static void main(String[] args)throws Exception{
      BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
      long min=1000;
      long M=Long.parseLong(br.readLine());
      long N=Long.parseLong(br.readLine());
      long a=M/min;
      a/=N;
      a*=min;
      System.out.println(a);
  }
}
0