Reason for IO instead of functions with return values in Codeforces and other CP platforms?

Revision en1, by kaashmonee, 2022-06-25 23:26:17

I've always wondered why so many CP platforms require that the submission prints the result to stdout instead of specifying a function name, inputs, and return types like Leetcode. Is there a good reason for this?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English kaashmonee 2022-06-25 23:26:17 304 Initial revision (published)