結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
nadeshino
|
| 提出日時 | 2020-05-19 18:33:34 |
| 言語 | Nim (2.2.8) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 327µs | |
| コード長 | 390 bytes |
| 記録 | |
| コンパイル時間 | 4,026 ms |
| コンパイル使用メモリ | 67,912 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-19 02:32:49 |
| 合計ジャッジ時間 | 4,763 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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