結果
問題 |
No.542 1円玉と5円玉
|
ユーザー |
![]() |
提出日時 | 2020-02-12 03:20:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 720 ms |
コンパイル使用メモリ | 72,160 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 20:22:21 |
合計ジャッジ時間 | 1,393 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream> #include <set> using namespace std; int main(void) { int a, b; cin >> a >> b; set<int> st; for (int i = 0; i < a + 1; ++i) { for (int j = 0; j < b + 1; ++j) { st.insert(i + j * 5); } } for (auto x : st) { if (x != 0) cout << x << endl; } return 0; }