作者:_大盗坂崎由莉nyS | 来源:互联网 | 2023-05-16 17:28
强调数值约束labeling:-use_module(library(clpfd)).which_year(Y):-Yin1..100,labeling([m
强调数值约束labeling
:- use_module(library(clpfd)).
which_year(Y):-
Y in 1..100,
labeling([min(Y)],[Y]),
11*(1+0.065)**Y > 18*(1+0.02)**Y.