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/chmin_fn.py

Required by

Verified with

Code

import cp_library.alg.dp.__header__

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

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