結果

問題 No.542 1円玉と5円玉
ユーザー bellangeldindon
提出日時 2019-05-13 15:34:02
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-07 17:45:37
合計ジャッジ時間 922 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, raw_input().split())
price = []
for i in range(1, A+1):
	for j in range(1, B+1):
		yen = i + j*5
		if yen not in price: price.append(yen)
print len(price)
0