cp-library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub kobejean/cp-library

:heavy_check_mark: cp_library/alg/dp/chmax_fn.py

Verified with

Code

import cp_library.alg.dp.__header__

def chmax(dp, i, v):
    if ch:=dp[i]<v:dp[i]=v
    return ch
'''
╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸
             https://kobejean.github.io/cp-library               
'''

def chmax(dp, i, v):
    if ch:=dp[i]<v:dp[i]=v
    return ch
Back to top page