結果
問題 | No.46 はじめのn歩 |
ユーザー | d07ki3bq1uz |
提出日時 | 2019-09-27 23:15:24 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 2,056 ms |
コンパイル使用メモリ | 74,524 KB |
実行使用メモリ | 57,756 KB |
最終ジャッジ日時 | 2023-10-25 06:20:00 |
合計ジャッジ時間 | 4,153 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 132 ms
57,460 KB |
testcase_01 | WA | - |
testcase_02 | AC | 132 ms
57,552 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 130 ms
57,480 KB |
testcase_07 | WA | - |
testcase_08 | AC | 132 ms
57,756 KB |
testcase_09 | AC | 132 ms
57,488 KB |
ソースコード
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(b%a == 0){ System.out.println(b/a); } if(b%a != 0){ int c = (b/a) - (b%a); int d = c+1; System.out.println(d); } } }