結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
8130Tsk
|
| 提出日時 | 2015-07-22 18:45:32 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 700 bytes |
| コンパイル時間 | 2,900 ms |
| コンパイル使用メモリ | 74,472 KB |
| 実行使用メモリ | 50,212 KB |
| 最終ジャッジ日時 | 2024-07-08 11:50:04 |
| 合計ジャッジ時間 | 3,927 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class ensyu2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("入力");
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try{
String line = reader.readLine();
String line2= reader.readLine();
int kazu1=Integer.parseInt(line);
int kazu2=Integer.parseInt(line2);
int a =(int)Math.ceil(kazu2/kazu1+0.5f);
System.out.println(a);
}catch(IOException e){
System.out.println(e);
}catch(NumberFormatException e){
System.out.println("数字を入力してください");
}
}
}
8130Tsk