結果

問題 No.542 1円玉と5円玉
ユーザー hedwig100hedwig100
提出日時 2020-05-29 11:11:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 754 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 30,028 KB
最終ジャッジ日時 2023-08-04 17:05:10
合計ジャッジ時間 4,768 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
29,808 KB
testcase_01 AC 129 ms
29,656 KB
testcase_02 AC 133 ms
29,616 KB
testcase_03 AC 133 ms
29,700 KB
testcase_04 AC 132 ms
29,648 KB
testcase_05 AC 132 ms
29,660 KB
testcase_06 AC 130 ms
29,792 KB
testcase_07 AC 131 ms
29,760 KB
testcase_08 AC 131 ms
29,792 KB
testcase_09 AC 133 ms
29,872 KB
testcase_10 AC 132 ms
29,740 KB
testcase_11 AC 128 ms
29,728 KB
testcase_12 AC 133 ms
30,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
A,B = map(int,input().split())
X = np.arange(A + 1)
Y = np.arange(B + 1) * 5
can = np.add.outer(X,Y).ravel()
can = np.sort(np.unique(can))
can = can.astype(str)
print('\n'.join(can[1:]))
0