题目
题目

FIT5216_S1_2025 Week 2 participation quiz

单项选择题

What output does the following MiniZinc model produce? var 0..3: x;constraint 2*x = x + 1;

选项
A.a. =====UNSATISFIABLE=====
B.b. x = 3;
C.c. x = 0;
D.d. x = 2;
E.e. x = 1;
查看解析

查看解析

标准答案
Please login to view
思路分析
First, restating the problem helps us focus on the core constraint: 2*x = x + 1 with x constrained to the domain 0..3. Option a states '=====UNSATISFIABLE=====', which would mean no value of x in 0..3 satisfies the equation. But plugging in possib......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!