Skip to content

Latest commit

 

History

History

examples

examples/

Please check also the gallery.

Real tasks of competitive programming

Toy scripts

  • ✔️ AC sum.py
    • A simple sum. This is compiled to a closed-form expr. (Wolfram|Alpha)
  • ✔️ AC fib.py
    • Fibonacci sequence. This is compiled to matrix eponentiation.
  • ⌛ TLE fact.py
    • Factorial.
    • TODO: This should be compiled to a loop from a recursion.

Examples for debug

  • ✔️ AC higher_order_function.py
    • An example of higher order functions.
  • ✔️ AC list_literal.py
    • An example of list literals.
  • ✔️ AC method_calls.py
    • An example of method calls.
  • ✔️ AC errors/type_errors.py
    • An example of type errors.
  • ✔️ AC errors/undefined_identifiers.py
    • An example of symbol errors.
  • ✔️ AC errors/toplevel_expr_statements.py
    • An example of expr statements in toplevel.
  • ⌛ compile-time-TLE wip/many_ifs.py
    • An example with many if-statements.
    • 動きはするけど遅くて困る