結果
問題 | No.542 1円玉と5円玉 |
ユーザー |
|
提出日時 | 2017-12-02 14:20:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 452 bytes |
コンパイル時間 | 1,673 ms |
コンパイル使用メモリ | 171,944 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-28 03:36:22 |
合計ジャッジ時間 | 2,291 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() #define MOD % 1000000007 using namespace std; typedef long long LL; typedef vector<int> VI; int main() { int a, b; cin >> a >> b; set<int> st; REP(i, a + 1) { REP(j, b + 1) { st.insert(i + j * 5); } } st.erase(0); for (auto it : st) cout << it << endl; return 0; }