結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
nadeshino
|
| 提出日時 | 2020-05-19 18:33:34 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 390 bytes |
| 記録 | |
| コンパイル時間 | 3,936 ms |
| コンパイル使用メモリ | 68,028 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-12-06 14:55:35 |
| 合計ジャッジ時間 | 4,822 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
import strutils
let read* = iterator: string =
while true: (for s in stdin.readLine.split: yield s)
template input*(T: static[typedesc]): untyped =
when T is int: read().parseInt
elif T is float: read().parseFloat
elif T is string: read()
elif T is char: read()[0]
let A, B, C, D = input(int)
for R in countdown(A, 0):
if R * C <= B and R + R * C <= D:
echo R; quit(0)
nadeshino