結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
Beat7501
|
| 提出日時 | 2019-03-22 21:22:57 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 2,000 ms |
| コード長 | 305 bytes |
| コンパイル時間 | 3,015 ms |
| コンパイル使用メモリ | 74,264 KB |
| 実行使用メモリ | 42,092 KB |
| 最終ジャッジ日時 | 2024-09-19 02:41:03 |
| 合計ジャッジ時間 | 5,940 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int i;
for(i = 1; i <= a && i*c <= b && i*c+i <= d; i++){
}
System.out.print(--i);
}
}
Beat7501