結果
問題 | No.46 はじめのn歩 |
ユーザー | d_maki |
提出日時 | 2019-03-11 17:17:56 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 418 bytes |
コンパイル時間 | 3,320 ms |
コンパイル使用メモリ | 73,208 KB |
実行使用メモリ | 56,260 KB |
最終ジャッジ日時 | 2023-09-05 20:13:50 |
合計ジャッジ時間 | 5,065 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 121 ms
55,820 KB |
testcase_01 | AC | 121 ms
55,588 KB |
testcase_02 | AC | 119 ms
55,800 KB |
testcase_03 | WA | - |
testcase_04 | AC | 123 ms
56,260 KB |
testcase_05 | WA | - |
testcase_06 | AC | 121 ms
55,624 KB |
testcase_07 | WA | - |
testcase_08 | AC | 119 ms
55,980 KB |
testcase_09 | AC | 119 ms
55,724 KB |
ソースコード
import java.util.Scanner; public class No46 { private static final String k = " "; public static void main(String[] args) { String input = null; Scanner sc = new Scanner(System.in); input = sc.nextLine(); String[] split = input.split(k); int a = Integer.parseInt(split[0]); int b = Integer.parseInt(split[1]); double c; c = (double) b / a; System.out.println(Math.round(c)); sc.close(); } }