
diff -r 2403c931a32f -r 0e6ca70496c1 cws/main_cw03.tex
--- a/cws/main_cw03.tex	Mon Nov 06 21:49:55 2023 +0000
+++ b/cws/main_cw03.tex	Fri Dec 08 00:54:36 2023 +0000
@@ -158,8 +158,8 @@
 $ scala-cli --extra-jars re.jar
 scala> import M3._  
 scala> for (i <- 0 to 5000000 by 500000) {
-  | println(f"$i: ${time_needed(2, matcher(EVIL, "a" * i))}%.5f secs.")
-  | }
+  println(s"$i: ${time_needed(2, matcher(EVIL, "a" * i))}")
+}
 0: 0.00002 secs.
 500000: 0.10608 secs.
 1000000: 0.22286 secs.
@@ -173,6 +173,9 @@
 5000000: 1.29659 secs.
 \end{lstlisting}%$
 
+\noindent
+For this you need to copy the \texttt{time\_needed} function and the \texttt{EVIL} regular
+expression from the comments given in \texttt{re.scala}.
 
 \subsection*{Preliminaries}
 




