結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | to-gth |
提出日時 | 2016-09-14 15:44:59 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 10,604 KB |
実行使用メモリ | 8,108 KB |
最終ジャッジ日時 | 2023-09-30 08:14:00 |
合計ジャッジ時間 | 1,182 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,920 KB |
testcase_01 | AC | 16 ms
7,932 KB |
testcase_02 | AC | 16 ms
7,936 KB |
testcase_03 | AC | 16 ms
7,960 KB |
testcase_04 | AC | 16 ms
7,964 KB |
testcase_05 | AC | 16 ms
8,064 KB |
testcase_06 | AC | 16 ms
8,056 KB |
testcase_07 | AC | 17 ms
8,108 KB |
testcase_08 | AC | 17 ms
7,928 KB |
testcase_09 | AC | 17 ms
8,060 KB |
testcase_10 | AC | 16 ms
7,904 KB |
testcase_11 | AC | 17 ms
7,924 KB |
ソースコード
import math l = int(input().strip()) m = int(input().strip()) n = int(input().strip()) def conv25(n): return [math.floor(n / 25), n % 25] def conv4(m): return [math.floor(m / 4), m % 4] def conv10(l): return l % 10 m_diff, n = conv25(n) m += m_diff l_diff, m = conv4(m) l += l_diff l = conv10(l) print(l + m + n)