結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-04-26 19:05:30 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 33 ms / 5,000 ms | 
| コード長 | 681 bytes | 
| コンパイル時間 | 125 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-23 04:28:21 | 
| 合計ジャッジ時間 | 1,066 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
def main():
    s=0
    l=int(input())
    m=int(input())
    n=int(input())
    
    ls1=up25(n,m)
    ls2=up100(ls1[1],l)
    ls3=up1000(ls2[1],s)
    
    print(ls1[0]+ls2[0]+ls3[0])
def up25(pn,pm):
    while True:
        if pn>=25:
            pn-=25
            pm+=1
        else:
            break
    pls=[pn,pm]
    return pls
def up100(pm,pl):
    while True:
        if pm>=4:
            pm-=4
            pl+=1
        else:
            break
    pls=[pm,pl]
    return pls
def up1000(pl,ps):
    while True:
        if pl>=10:
            pl-=10
            ps+=1
        else:
            break
    pls=[pl,ps]
    return pls
if __name__=="__main__":
    main()
            
            
            
        