結果
問題 | No.388 階段 (1) |
ユーザー |
![]() |
提出日時 | 2017-11-27 21:11:40 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 137 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 3,379 ms |
コンパイル使用メモリ | 73,884 KB |
実行使用メモリ | 41,504 KB |
最終ジャッジ日時 | 2024-11-27 11:24:54 |
合計ジャッジ時間 | 6,152 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
import java.util.Scanner; public class No388 { public static void main(String[]args) { Scanner sc = new Scanner(System.in); int s,f,n ; do { s = sc.nextInt(); }while(s<0 & s>456); do { f = sc.nextInt(); }while(1>f & f>123); n=s/f; System.out.println(n+1); } }