結果

問題 No.542 1円玉と5円玉
ユーザー Noiri
提出日時 2019-01-31 23:54:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 1,494 ms
コンパイル使用メモリ 171,284 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-17 21:33:59
合計ジャッジ時間 1,892 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int a, b;
    cin >> a >> b;
    set<int> st;
    for(int i=0; i<=a; i++){
        for(int j=0; j<=b; j++){
            st.insert(i + 5*j);
        }
    }
    for(int x: st){
        if(x != 0) cout << x << endl;
    }
    return 0;
}
0