diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-10-18 16:26:00 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-10-18 16:26:00 +0200 |
commit | d0dd9cd28eec6007c2f80737a47895498b0ee9f7 (patch) | |
tree | 64c5f61d862de22609a70b9fb313e08dd236f4a0 /prolog/problems/world_data/flows_2/en.py | |
parent | 64e1f9eb2e18910e4ecc7299c53868445d3ed9b1 (diff) |
Prolog: add more world_data exercises
Diffstat (limited to 'prolog/problems/world_data/flows_2/en.py')
-rw-r--r-- | prolog/problems/world_data/flows_2/en.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/prolog/problems/world_data/flows_2/en.py b/prolog/problems/world_data/flows_2/en.py new file mode 100644 index 0000000..f108001 --- /dev/null +++ b/prolog/problems/world_data/flows_2/en.py @@ -0,0 +1,20 @@ +name = 'flows/2' +slug = '' + +description = '''\ +<p><code>flows(X, Y)</code>: the river <code>X</code> flows to sea <code>Y</code>. +The predicate should follow the flow from <code>X</code> through different rivers +until it reaches a sea - for example, Drina flows into Save, which flows into Donau, +ending in the Black Sea:</p> +<pre> +?- flows('Drina', Y). + Y = 'Black Sea'. +</pre> +<p>River data is given by the predicate</p> +<pre> +river(Name, FlowsToRiver, FlowsToLake, FlowsToSea, Length, Area, + SourceLat, SourceLon, SourceElevation, MouthLat, MouthLon). +</pre> +''' + +hint = {} |