結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-14 15:54:09 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 134 ms / 5,000 ms |
| コード長 | 665 bytes |
| コンパイル時間 | 3,349 ms |
| コンパイル使用メモリ | 74,608 KB |
| 実行使用メモリ | 54,312 KB |
| 最終ジャッジ日時 | 2024-09-25 05:11:10 |
| 合計ジャッジ時間 | 5,341 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
/*
* 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 no46;
import java.util.Scanner;
/**
*
* @author m0116073
*/
public class no46 {
/**
* @param args the command line arguments
*/
public static void main(String[] args)throws Exception{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (b % a == 0) {
System.out.println(b / a);
} else {
System.out.println(b / a + 1);
}
}
}