結果

問題 No.46 はじめのn歩
ユーザー GBGB
提出日時 2018-04-08 14:46:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 588 ms / 5,000 ms
コード長 341 bytes
コンパイル時間 1,968 ms
コンパイル使用メモリ 71,660 KB
実行使用メモリ 57,596 KB
最終ジャッジ日時 2023-09-09 03:09:05
合計ジャッジ時間 4,608 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,712 KB
testcase_01 AC 119 ms
57,596 KB
testcase_02 AC 119 ms
55,608 KB
testcase_03 AC 116 ms
55,572 KB
testcase_04 AC 114 ms
55,600 KB
testcase_05 AC 118 ms
55,860 KB
testcase_06 AC 115 ms
56,236 KB
testcase_07 AC 116 ms
56,316 KB
testcase_08 AC 588 ms
55,724 KB
testcase_09 AC 117 ms
55,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Main{
  public static void main(String[] args)throws IOException {

    Scanner scan=new Scanner(System.in);
    int a=Integer.parseInt(scan.next());
    int b=Integer.parseInt(scan.next());
    int count=0;

    while(b>0){
      b-=a;
      count++;
    }

    System.out.println(count);

  }
}
0