結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
Beat7501
|
| 提出日時 | 2019-03-22 21:22:57 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 2,000 ms |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 2,391 ms |
| コンパイル使用メモリ | 76,624 KB |
| 実行使用メモリ | 46,740 KB |
| 最終ジャッジ日時 | 2025-12-06 14:41:12 |
| 合計ジャッジ時間 | 5,703 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
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