Converted everything to orgmode
converted everything to orgmode and added solution to the README files
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
|
||||
* Task
|
||||
|
||||
Translate the following natural language expressions to `C++` expressions. Assume that all the variables are non-negative integers or boolean (of value `true` or `false`).
|
||||
Translate the following natural language expressions to =C++= expressions. Assume that all the variables are non-negative integers or boolean (of value =true= or =false=).
|
||||
|
||||
/For this task you need to write the solutions in the `solutions.cpp` file, by filling the various functions that have been defined for each subtasks./
|
||||
/For this task you need to write the solutions in the =solutions.cpp= file, by filling the various functions that have been defined for each subtasks./
|
||||
|
||||
*Example:* \(a\) is greater than \(3\) and smaller than \(5\). \(\Longrightarrow\) *Solution:*
|
||||
|
||||
@@ -13,7 +13,7 @@ Translate the following natural language expressions to `C++` expressions. Assum
|
||||
return a > 3 && a < 5;
|
||||
#+end_src
|
||||
|
||||
/Note:/ Do not confuse the bitwise logical operators (e.g., `&`) with their binary logical counterparts (`&&`). The semantics are slightly different — bitwise operators do not exhibit short circuit evaluation.
|
||||
/Note:/ Do not confuse the bitwise logical operators (e.g., =&=) with their binary logical counterparts (=&&=). The semantics are slightly different — bitwise operators do not exhibit short circuit evaluation.
|
||||
|
||||
1. \(a\) greater than \(b\) and the difference between \(a\) and \(b\) is smaller than \(15\).
|
||||
1. \(a\) is an even natural number greater than \(a\).
|
||||
@@ -23,9 +23,9 @@ return a > 3 && a < 5;
|
||||
|
||||
** Input
|
||||
|
||||
The program expects the task number as the first input followed by the parameters to the chosen task. For example, `3 5 1 1` selects task `3` with `a = 5`, `b = 1`, and `c = 1`.
|
||||
The program expects the task number as the first input followed by the parameters to the chosen task. For example, =3 5 1 1= selects task =3= with =a = 5=, =b = 1=, and =c = 1=.
|
||||
|
||||
Note that boolean parameters for tasks 4 and 5 are entered as true and false. For example `4 true false true` would run task `4` with `a = true`, `b = false`, and `c = true`.
|
||||
Note that boolean parameters for tasks 4 and 5 are entered as true and false. For example =4 true false true= would run task =4= with =a = true=, =b = false=, and =c = true=.
|
||||
|
||||
* Solutions
|
||||
|
||||
@@ -80,3 +80,7 @@ bool task5(bool a, int b) {
|
||||
}
|
||||
}
|
||||
#+end_src
|
||||
|
||||
-----
|
||||
|
||||
Made by JirR02 in Switzerland 🇨🇭
|
||||
|
Reference in New Issue
Block a user