63:16:40
-4 days 8:43:20
Contest is over

CPC Fall 2025 Week 8: Binary and Ternary Search


Time elapsed

104:43:20

Time Remaining

63:16:40

Starts in

-4 days 8:43:20

Ends in

2 days 15:16:40

Start

2025-10-29 23:00 CET

End

2025-11-05 23:00 CET

Visit Scoreboard
Log in
 

CPC Fall 2025 Week 8: Binary and Ternary Search

PHP

Compiler settings

We use php 8.3.6 to compile your program with the following command:

$ php -n -d display_errors=stderr -d html_errors=0 -l {files}

  • {files} is a space-separated list of all files.

Runtime settings

We use php 8.3.6 to run your program with the following command:

$ php -n -d display_errors=stderr -d html_errors=0 -d memory_limit={memlim}m -r "{php_preamble} require '{mainfile}';"

  • {mainfile} is the entrypoint file (you can specify which file this is when submitting).
  • {memlim} is the actual memory limit for the problem you are submitting to.
  • {php_preamble} sets a custom error handler that treats warnings as errors.

File extensions

Files with any of the following file extensions will be used: .php

Additional information

Additional language-specific advice and information for many languages is available in the knowledge base