結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | tarotaro789 |
提出日時 | 2017-04-26 19:05:30 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 18 ms / 5,000 ms |
コード長 | 681 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 10,880 KB |
実行使用メモリ | 7,956 KB |
最終ジャッジ日時 | 2023-09-30 10:21:57 |
合計ジャッジ時間 | 944 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,884 KB |
testcase_01 | AC | 18 ms
7,956 KB |
testcase_02 | AC | 16 ms
7,884 KB |
testcase_03 | AC | 16 ms
7,836 KB |
testcase_04 | AC | 16 ms
7,804 KB |
testcase_05 | AC | 16 ms
7,876 KB |
testcase_06 | AC | 16 ms
7,832 KB |
testcase_07 | AC | 16 ms
7,832 KB |
testcase_08 | AC | 16 ms
7,760 KB |
testcase_09 | AC | 16 ms
7,900 KB |
testcase_10 | AC | 16 ms
7,904 KB |
testcase_11 | AC | 16 ms
7,840 KB |
ソースコード
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()