Liste des Groupes | Revenir à cl c |
On 19/03/2025 01:38, DFS wrote:
I'm doing these algorithm problems at
https://cses.fi/problemset/list/
For instance: Weird Algorithm
https://cses.fi/problemset/task/1068
This is related to the Collatz Conjecture. What's weird is not
mentioning it.
len = strlen(result);
sprintf(result + len, "%d ", n);
And what's odd here is collating the results in a string (especially
when the possible number of steps is unknown). Why not just print it
straight to the console?
Les messages affichés proviennent d'usenet.