結果
問題 | No.542 1円玉と5円玉 |
ユーザー |
|
提出日時 | 2017-07-14 22:21:44 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 180 bytes |
コンパイル時間 | 65 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-07 21:56:26 |
合計ジャッジ時間 | 883 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
a, b = map(int, raw_input().split()) s = set() for i in xrange(a+1): for j in xrange(b+1): s.add(i + j * 5) s.discard(0) s = sorted(list(s)) for i in s: print i