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/io/read_func_fn.py

Verified with

Code

import cp_library.io.__header__

def read(func=0, /):
    if callable(func): return [func(s) for s in input().split()]
    return [int(s)+func for s in input().split()]
'''
╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸
             https://kobejean.github.io/cp-library               
'''

def read(func=0, /):
    if callable(func): return [func(s) for s in input().split()]
    return [int(s)+func for s in input().split()]
Back to top page