結果
問題 | No.46 はじめのn歩 |
ユーザー | yasu_ |
提出日時 | 2019-04-03 00:34:13 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 125 ms / 5,000 ms |
コード長 | 638 bytes |
コンパイル時間 | 3,321 ms |
コンパイル使用メモリ | 71,860 KB |
実行使用メモリ | 55,980 KB |
最終ジャッジ日時 | 2023-08-21 06:58:53 |
合計ジャッジ時間 | 5,509 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 124 ms
55,768 KB |
testcase_01 | AC | 122 ms
55,980 KB |
testcase_02 | AC | 122 ms
55,680 KB |
testcase_03 | AC | 125 ms
55,912 KB |
testcase_04 | AC | 122 ms
55,872 KB |
testcase_05 | AC | 123 ms
55,700 KB |
testcase_06 | AC | 121 ms
55,620 KB |
testcase_07 | AC | 122 ms
55,768 KB |
testcase_08 | AC | 125 ms
55,516 KB |
testcase_09 | AC | 120 ms
55,912 KB |
ソースコード
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package programingtest; import java.util.Scanner; /** * * @author yh_04 */ public class Programingtest { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int ret = (int)Math.ceil((double)b / (double)a); System.out.println(ret); } }