結果
問題 | No.542 1円玉と5円玉 |
ユーザー | hiragn |
提出日時 | 2019-07-19 03:07:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 1,585 ms |
コンパイル使用メモリ | 172,452 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 23:29:02 |
合計ジャッジ時間 | 2,205 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#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);}}st.erase(0);for (const auto &i: st) cout << i << endl;return 0;}