結果
| 問題 | 
                            No.542 1円玉と5円玉
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-12-28 12:17:59 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 144 bytes | 
| コンパイル時間 | 159 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-11-23 12:40:00 | 
| 合計ジャッジ時間 | 1,297 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | AC * 1 WA * 9 | 
ソースコード
a,b=map(int,input().split())
s=set()
for i in range(a+1):
    for j in range(b+1):
        a=i+5*j
        s.add(a)
s.remove(0)
print(len(s))