結果

問題 No.46 はじめのn歩
ユーザー mustonmuston
提出日時 2016-05-18 15:31:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 1,979 ms
コンパイル使用メモリ 73,828 KB
実行使用メモリ 41,852 KB
最終ジャッジ日時 2024-04-15 22:54:34
合計ジャッジ時間 3,919 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 129 ms
41,056 KB
testcase_02 WA -
testcase_03 AC 128 ms
41,548 KB
testcase_04 AC 127 ms
41,176 KB
testcase_05 AC 130 ms
41,296 KB
testcase_06 WA -
testcase_07 AC 128 ms
41,152 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
/*yukicoder No.46 はじめのn歩*/
class No46{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();  //一歩の歩数aを入力
    int b = scan.nextInt();  //歩く距離bを入力
    int walk = b/a+1;  //歩いた回数
    System.out.println(walk);
  }
}
0