cp-library

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

View the Project on GitHub kobejean/cp-library

:warning: cp_library/perf/checksum.py

Required by

Code

"""
Minimal checksum utilities for benchmark validation.
"""

def update_checksum(current: int, value: int) -> int:
    """Update checksum with a single value."""
    return (current * 31 + value) & 0xFFFFFFFF
"""
Minimal checksum utilities for benchmark validation.
"""

def update_checksum(current: int, value: int) -> int:
    """Update checksum with a single value."""
    return (current * 31 + value) & 0xFFFFFFFF
Back to top page