結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2019-03-11 17:17:56 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 418 bytes |
コンパイル時間 | 3,452 ms |
コンパイル使用メモリ | 75,052 KB |
実行使用メモリ | 54,280 KB |
最終ジャッジ日時 | 2024-06-23 15:38:22 |
合計ジャッジ時間 | 4,863 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 3 |
ソースコード
import java.util.Scanner; public class No46 { private static final String k = " "; public static void main(String[] args) { String input = null; Scanner sc = new Scanner(System.in); input = sc.nextLine(); String[] split = input.split(k); int a = Integer.parseInt(split[0]); int b = Integer.parseInt(split[1]); double c; c = (double) b / a; System.out.println(Math.round(c)); sc.close(); } }