結果

問題 No.542 1円玉と5円玉
ユーザー nekoneko
提出日時 2019-11-13 08:49:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 11,824 KB
実行使用メモリ 10,380 KB
最終ジャッジ日時 2023-10-21 19:37:26
合計ジャッジ時間 1,199 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,988 KB
testcase_01 WA -
testcase_02 AC 30 ms
9,988 KB
testcase_03 AC 29 ms
9,988 KB
testcase_04 AC 29 ms
9,988 KB
testcase_05 AC 29 ms
10,040 KB
testcase_06 AC 30 ms
10,056 KB
testcase_07 AC 29 ms
10,056 KB
testcase_08 AC 29 ms
10,084 KB
testcase_09 AC 30 ms
10,092 KB
testcase_10 AC 30 ms
9,992 KB
testcase_11 AC 29 ms
9,992 KB
testcase_12 AC 32 ms
10,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
a,b=map(int,input().split())

a_add=[i for i in range(1,a+1)]
b_add=[s for s in range(5,(b+1)*5,5)]


t=[sum(m) for m in itertools.product(a_add,b_add)]

#print(list(set(a_add+b_add+t)))
[print(q) for q in (set(a_add+b_add+t))]
0