結果

問題 No.542 1円玉と5円玉
ユーザー 👑 yumechiyumechi
提出日時 2017-07-27 22:41:59
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 218 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 65,920 KB
最終ジャッジ日時 2024-04-18 08:57:22
合計ジャッジ時間 1,353 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,256 KB
testcase_01 AC 40 ms
52,096 KB
testcase_02 AC 39 ms
52,352 KB
testcase_03 AC 41 ms
52,128 KB
testcase_04 AC 34 ms
51,840 KB
testcase_05 AC 40 ms
52,352 KB
testcase_06 AC 36 ms
52,608 KB
testcase_07 AC 37 ms
52,992 KB
testcase_08 AC 37 ms
57,984 KB
testcase_09 AC 46 ms
58,368 KB
testcase_10 AC 36 ms
52,224 KB
testcase_11 AC 37 ms
52,608 KB
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
s=[0]*(600)
al=[i for i in range(0, a+1, 1)]
bl=[i for i in range(0, b*5+1, 5)]
for v1 in al:
  for v2 in bl:
    s[v1+v2] += 1
for i, v in enumerate(s):
  if v > 0 and i > 0:
    print(i)
0