結果

問題 No.542 1円玉と5円玉
ユーザー chacoder1chacoder1
提出日時 2021-01-24 15:32:51
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 2,069 ms
コンパイル使用メモリ 198,004 KB
最終ジャッジ日時 2025-01-18 07:51:16
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)

signed main(){
  int a,b;
  cin>>a>>b;
  map<int,int>mp;
  rep(i,a+1) rep(j,b+1) mp[i+j*5]++;
  for(auto e:mp){
    if(e.first==0) continue;
    cout<<e.first<<endl;
  }
  return 0;
}

0