Coin Denomination Design - hard

2 secs 1024 MB
ocv_contest's icon ocv_contest

testcase-9.txt


入力

出力