結果

問題 No.542 1円玉と5円玉
ユーザー kept1994kept1994
提出日時 2022-05-04 23:06:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 75,272 KB
最終ジャッジ日時 2023-09-17 04:05:11
合計ジャッジ時間 1,736 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,096 KB
testcase_01 AC 60 ms
70,844 KB
testcase_02 AC 64 ms
70,948 KB
testcase_03 AC 61 ms
70,964 KB
testcase_04 AC 63 ms
70,772 KB
testcase_05 AC 63 ms
71,004 KB
testcase_06 AC 62 ms
71,004 KB
testcase_07 AC 63 ms
71,032 KB
testcase_08 AC 66 ms
74,924 KB
testcase_09 AC 65 ms
75,272 KB
testcase_10 AC 62 ms
71,088 KB
testcase_11 AC 60 ms
71,152 KB
testcase_12 AC 67 ms
74,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    a, b = map(int, input().split())
    l = set()
    for i in range(a + 1):
        for j in range(b + 1):
            l.add(i + 5 * j)
    for ll in sorted(list(l))[1:]:
        print(ll)
    return    

if __name__ == '__main__':
    main()
0