結果
問題 | No.388 階段 (1) |
ユーザー |
|
提出日時 | 2016-07-07 19:00:53 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 133 ms / 2,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 2,084 ms |
コンパイル使用メモリ | 74,436 KB |
実行使用メモリ | 41,572 KB |
最終ジャッジ日時 | 2024-10-12 23:17:55 |
合計ジャッジ時間 | 4,792 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { solver(); } static void solver() { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); if (s < 0 || s > 456) throw new AssertionError(); int f = sc.nextInt(); if (f <= 0 || f > 124) throw new AssertionError(); System.out.println((s / f + 1)); } }